Subscribe to:
Post Comments
(
Atom
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include<stdio.h>
int main() {
int rad;
float PI = 3.14, area, ci;
printf("\nEnter radius of circle: ");
scanf("%d", &rad);
area = PI * rad * rad;
printf("\nArea of circle : %f ", area);
ci = 2 * PI * rad;
printf("\nCircumference : %f ", ci);
return (0);
}
|
1
2
3
|
Enter radius of a circle : 1
Area of circle : 3.14
Circumference : 6.28
|
Make Smart Understanding Open Source Software, and How It Makes You Money Online Do you want to know more about how the internet works?...
No comments: