Program to calculate area of Circle in C
//Program to calculate area of Circle in C #include<stdio.h> #include<math.h> #define PI 3.14 int main() { float r,area; printf("Enter radius of circle :- "); scanf("%f",&r); //Area of circle area = PI * pow(r,2); printf("Area of circle : %.2f",area); return 0; }
Output :-
VIDEO
0 Comments