1
0

rows1.c 348 B

123456789101112131415161718
  1. /* rows1.c -- uses nested loops */
  2. #include <stdio.h>
  3. #define ROWS 6
  4. #define CHARS 10
  5. int main(void)
  6. {
  7. int row;
  8. char ch;
  9. for (row = 0; row < ROWS; row++) /* line 10 */
  10. {
  11. for (ch = 'A'; ch < ('A' + CHARS); ch++) /* line 12 */
  12. printf("%c", ch);
  13. printf("\n");
  14. }
  15. return 0;
  16. }