发布时间:2014-11-25 19:06:16
#include int main(){float r,h;float l,S,s_b,V1,V2,y_zh,s_x,y_z;scanf("%f %f",&r,&h);l = 2 * 3.14 * r;S=3.14*r*r;s_b=4*3.14*r*r;V1=(4/3)*3.14*r*r*r;V2=3.14*r/180; y_zh=3.14*r*r*h;s_x=3.14*r*r/360*r/2;y_z=3.14*r*l;printf("圆的周长为 %f\n",l);.........【阅读全文】
发布时间:2014-11-24 16:26:26
/* ************************************************************ NAME : LISHUBO AUTHOR : .........【阅读全文】
发布时间:2014-11-24 16:11:54
(1)小数的除法:#include int main(){ float a,b,eliminate; scanf("%f %f",&a,&b); eliminate=a/b; printf("eliminate is %f\n",eliminate); return 0;}如图:(2)小数的乘法:#include int main(){ float a,b,ride; scanf("%f %f",&a,&b).........【阅读全文】
发布时间:2014-11-24 15:59:54
(1)整数的加法:#include int main(){ int a,b,sum; scanf("%d %d",&a,&b); sum=a+b; printf("sum is %d\n",sum); return 0;}如图:(2)整数的减法:#include int main(){ int a,b,subtract; scanf("%d %d",&a,&b); subtract=a-b;.........【阅读全文】