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

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