Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- double r,pi=3.14159;
- printf("半径を入力してください。:");
- scanf("%lf",&r);
- printf("円周の長さ:%lf 円の面積:%lf 球の面積:%lf 球の体積%lf\n",2*pi*r,pi*r*r,4*pi*r*r,4*pi*r*r*r/3);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement