发布时间:2014-11-27 22:44:57
#include int main(){int score;scanf("%d",&score);if(score>100){printf("亲,您输入的分数有误,请查正后再次输入\n"); return 0;}if(score=90 ){if.........【阅读全文】
发布时间:2014-11-26 21:05:31
#include int main(){float factor_1,factor_2 ;double result;char operation; scanf("%f%c%f",&factor_1 , &operation ,&factor_2 );if(operation =='+'){result=factor_1+factor_2; printf("sum is %lf\n",result);}else if(operation == '-')&n.........【阅读全文】
发布时间:2014-11-26 20:58:27
#include int main(){ //定义5个变量,分别为数学,语文,物理,化学. float math,chinese,physics,chemistry,zongshu; //数学的成绩为100,语文的成绩为99,物理的成绩为98,化学的成绩为97。 int select; &nb.........【阅读全文】
发布时间: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);.........【阅读全文】