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

#include <stdio.h>
int main(void) {
char letter = 'A';
for (char i = 1; i <= 6; i++) {
for (char j = letter; j < (letter + i); j++) {
printf("%c", j);
}
letter += i;
printf("\n");
}
return 0;
}