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
264 B

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