发布时间:2014-12-01 11:11:58
#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b && a>c) { printf("max=%d\n",a); return 0; } else if(b>a && b>c) { printf("max=%d\n",b); return 0; } els.........【阅读全文】
发布时间: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.........【阅读全文】