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