1
0

19-define.c 204 B

12345678910111213
  1. #include <stdio.h>
  2. #define PI 3.14159
  3. #define SQUARE(x) ((x) * (x))
  4. int main() {
  5. float radius = 2.5;
  6. float area = PI * SQUARE(radius);
  7. printf("Area: %.2f\n", area);
  8. return 0;
  9. }