QUIZERA

area of circle

Feb 15th, 2019
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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. }
Add Comment
Please, Sign In to add comment