摘要: #includeint main(void){ int i; int fib[10]={1,1}; for(i=2;iint main(void){ double radius; printf("Enter radius:"); scanf("%if",&radius); printf("S=%.2.0f\n",s); if(rint main(void){ int count[9]; int i,response; for(i=1;i8) printf("this is a bad respons... 阅读全文
posted @ 2013-10-14 09:57 红颜文丛 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int digit,letter,other; char ch; int i; digit=letter=other=0; printf("Enter 10 characters:"); for(i=1;i='a'&&ch'A'&&ch='0' && chint main(void){ int choice,i; double price; for(i=1;iint main(void){ double value1,value2; 阅读全文
posted @ 2013-10-08 17:54 红颜文丛 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int mynumber=38; int yournumber; printf("Input your number:"); scanf("%d",&yournumber); if(yournumber==mynumber) printf("OK!you are right!\n"); else if(yournumber>mynumber) printf("Sorry!your number is bigger than my number!\n"); 阅读全文
posted @ 2013-10-08 13:14 红颜文丛 阅读(169) 评论(0) 推荐(0) 编辑
摘要: # includeint main(void){ printf("Progmming is fun.\n"); printf("And programming in C is even more fun!\n"); return 0;}#includeint main(void){ int celsius,fahr; fahr=100; celsius = 5 * (fahr-32)/9; printf("fahr=%d,celsius = %d\n",fahr,celsius); return 0; }#include int ma 阅读全文
posted @ 2013-10-07 15:22 红颜文丛 阅读(160) 评论(0) 推荐(0) 编辑
摘要: # includeint main(void){ printf("Progmming is fun.\n"); printf("And programming in C is even more fun!\n"); return 0;}#includeint main(void){ int celsius,fahr; fahr=100; celsius = 5 * (fahr-32)/9; printf("fahr=%d,celsius = %d\n",fahr,celsius); return 0; }#include int ma 阅读全文
posted @ 2013-10-07 14:48 红颜文丛 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int n; int factorial(int n); scanf("%d",&n); printf("%d\n",factorial(n)); return 0;}int factorial(int n){ int i,fact=1; for(i=1;iint main(void){ printf("Hello World!\n"); return 0;} 阅读全文
posted @ 2013-10-07 09:27 红颜文丛 阅读(113) 评论(0) 推荐(0) 编辑