不平凡的我
2014年(14)
发布时间:2014-12-09 14:35:08
#include<stdio.h>int main(){ int num,a,flag; for (num=2;num<1000;num++) { flag=1; for(a=2;a<=num/2;a++) { if(num%a==0) { flag=0; continue; }&.........【阅读全文】
发布时间:2014-12-02 16:37:58
#include<stdio.h>int main(){ int a,b; a=1;b=1; while (1) { while (1) { printf("%d*%d=%d\t",a, b, a*b); a++; if(a>b) { printf("\n"); &n.........【阅读全文】
发布时间:2014-12-01 11:12:47
#include <stdio.h>int main() { int a,b,c; int m; printf("Please input a b c\n"); scanf("%d %d %d",&a,&b,&c); m = a; if (b > m) m = b; if (c > m) m = c; printf("Max is %d\n",m); }.........【阅读全文】
发布时间:2014-11-28 14:35:26
#include <stdio.h>int main(){ int year,leap; scanf("%d",&year);if(year%4==0){if(year%100!=0) leap=1;else{if(year%400==0) leap=1;else leap=0;} }if(leap==1) printf("%d是闰年\n",year);else printf("%d不是闰年\n",year);} .........【阅读全文】