标签:style blog http color strong io for 2014
1 /* 2 * Main.c 3 * C12-循环-12. 打印九九口诀表 4 * Created on: 2014年7月31日 5 * Author: Boomkeeper 6 *******测试通过******** 7 */ 8 9 10 #include <stdio.h> 11 12 int main(void){ 13 14 int N=0;//题目中的N 15 16 scanf("%d",&N); 17 int i, j;//控制行、列 18 for (i = 1; i <= N; i++){ 19 for (j = 1; j <= i ; j++){ 20 printf("%d*%d=%d\t", j, i, j*i); 21 } 22 printf("\n"); 23 } 24 return 0; 25 }
题目链接:
http://pat.zju.edu.cn/contests/basic-programming/%E5%BE%AA%E7%8E%AF-12
标签:style blog http color strong io for 2014
原文地址:http://www.cnblogs.com/boomkeeper/p/C12.html