Advertisement
18126

ExampleTestNo1Ex4

Mar 22nd, 2022
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define PI 3.14
  4. #define CIRCLEAREA(r) ( (PI) * (r) * (r) )
  5.  
  6. int main() {
  7.     double r;
  8.     scanf("%lf", &r);
  9.     double result = CIRCLEAREA(r);
  10.     printf("Area: %lfm2\n", result);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement