Ghislain_Mike

Area of circle

Feb 8th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define PI 3.14
  4.  
  5. int main() {
  6.   float RADIUS, AREA;
  7.  
  8.   printf("Enter the radius = ");
  9.   scanf("%f", &RADIUS);
  10.  
  11.   AREA = RADIUS * RADIUS * PI;
  12.   printf("Area = %.2f", AREA);
  13.  
  14.   return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment