Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
231 B

  1. #include <stdio.h>
  2. int main(void) {
  3. char letter = 'A';
  4. for (char i = 1; i <= 6; i++) {
  5. for (char j = letter; j < (letter + i); j++) {
  6. printf("%c", j);
  7. }
  8. letter += i;
  9. printf("\n");
  10. }
  11. return 0;
  12. }