Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int x;
- float pi,radius,area,circumference;
- printf("Enter the radius of the circle:");
- scanf("%d",&x);
- pi=3.14;
- area = pi*x*x;
- printf("The area of the circle %.2f\n",area);
- circumference = 2*pi*x;
- printf("The circumference of the circle %.2f",circumference);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment