fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. char *p = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  4. for (int row = 0; row < 6; row++) {
  5. for (int col = 0; col <= row; col++) putchar(*p++);
  6. putchar('\n');
  7. }
  8. }
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
A
BC
DEF
GHIJ
KLMNO
PQRSTU