摘要: #includeint main(void){ printf("Programming is fun.\n"); printf("And programming in C is even more fun!\n"); return 0;} 阅读全文
posted @ 2013-10-03 12:36 。墨墨恢非受 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ printf("Hello World!\n");return 0;} 阅读全文
posted @ 2013-10-03 12:34 。墨墨恢非受 阅读(212) 评论(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;i<=n;i++) fact=fact*i; return fact;} 阅读全文
posted @ 2013-10-02 13:33 。墨墨恢非受 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-30 09:54 。墨墨恢非受 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-30 09:05 。墨墨恢非受 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int fahr,lower,upper; double celsius; printf("Enter lower:"); scanf("%d",&lower); printf("Enter upper:"); scanf("%d",&upper); printf("fahr celsius\n"); for(fahr=lower;fahr<=upper;fahr++){ celsius=(5.0/9.0)*(fahr-32) 阅读全文
posted @ 2013-09-26 09:53 。墨墨恢非受 阅读(175) 评论(1) 推荐(0) 编辑