C语言循环嵌套实例 C语言循环实例 C语言循环嵌套实例2 C语言循环嵌套实例 /* rows1.c -- uses nested loops */ #include <stdio.h> #define ROWS 6 #define CHARS 10 int main(void) { int row; char ch; for (row = 0; row < ROWS; row++) /* line 10 */ { for (ch = 'A'; ch < ('A' + CHARS); ch++) /* line 12 */ printf("%c", ch); printf("\n"); } return 0; } C语言循环实例 C语言循环嵌套实例2