摘要:
#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... 阅读全文
摘要:
#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; 阅读全文
摘要:
#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"); 阅读全文
摘要:
# 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 阅读全文
摘要:
# 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 阅读全文
摘要:
#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;} 阅读全文