Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define PI 3.14
- #define CIRCLEAREA(r) ( (PI) * (r) * (r) )
- int main() {
- double r;
- scanf("%lf", &r);
- double result = CIRCLEAREA(r);
- printf("Area: %lfm2\n", result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement