C 语言程序设计(第三版)习题库1、设圆半径 r=1、5,圆柱高 h=3,求圆周长、圆面积、圆球表面积、圆球体积、圆柱体积。用s canf 输入数据,输出计算成果,输出时规定文字阐明,取小数点后两位数字。请编程序。 #i n clud e <std i o、h>m a in(){fl o at r,h,C1,Sa,S b,V a,Vb; s canf(__”%f"__,&r); s canf(”%d”,__&h_);; C1=2*3、1 4*r; S a=3、14*r*r; S b=4*S a; Va=4*3、14*r*r*r/3; Vb=S a*h; prin t f(___”C l=%、2fSa=%、2f S b=%、2 fVa=%、2f V b=%、2f”,Cl,Sa,Sb,V a,Vb);}2、输入一种华氏温度,规定输出摄氏温度。公式为 c=5(F-3 2)/9 输出规定有文字阐明,取位 2 小数。 #in clu d e main(){f loa t F,c; sc a nf("%f",&F); ____c=5*(F-3 2)/9______; printf(”c=%、2 f",c); }3、有一函数: 写一程序,输入 x 值,输出y值。 #include =1 && x<10)ﻩ{ y=2*x—1;} e l s e{ y=3*x-11;} p r i nt f(”%d”,y);}# i n c lu de ”std i o、h"main(){ int x,y; s ca n f(”%d",&x); if(x〈1)ﻩ{ y=x;} else i f(x>=1 && x〈10){ y=2*x-1;} e lseﻩ{ y=3*x-1 1;} printf(”%d\n",y);}# i n c l ude ”st d io、h"m a in(){ in t x,y; scanf("%d",&x); if(x〈1){ y=x;} el s e i f(x>=1 && x〈10){ y=2*x-1;} elseﻩ{ y=3*x—1 1;} pri nt f(”%d",y)...