Write a program in 'C' to enter the radius and calculate and print the area of Circle using the formula area = TT * (radius)2, where TT = 3.14
#include< main() { float r, a; printf("Enter the value of radius\n"); scanf("%f", &r); a = 3.14*r*r; printf("The area is %f\n", a); return(0); } |
---|
For eg :-
Output :-
Enter the value of radius
5
The area is 78.50000
0 comments:
Post a Comment