123456789101112131415161718 |
- /* 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;
- }
|