发布时间:2014-11-28 14:40:19
#include <stdio.h>int main(){ int year,result=0; printf("输入一个年份:\n"); scanf("%d",&year); if(year%100==0) { if(year%400==0) result=1; } else if(year%4==0) result=1; &nb.........【阅读全文】
发布时间:2014-11-27 22:55:07
#include int main(){ int score;scanf("%d",&score);if(score>0,score10,score100,score1000,score......【阅读全文】
发布时间: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.........【阅读全文】