Program:- #include <stdio.h> int main() { int r; float a; printf("enter radius of the circle: "); scanf("%d",&r); a=(3.14*r*r)/7; printf("area of circle is: %f\n",a); } Output:-
No comments:
Post a Comment