Advertisement
namereq

ex3b.c

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