fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5. char c,c1='A';int n=0;
  6. for (c = 'A'; c <= 'U'; c++)
  7. {
  8. printf("%c", c);
  9. if (c-c1==n) { printf("\n"); n++; c1=c+1;}
  10. }
  11. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
A
BC
DEF
GHIJ
KLMNO
PQRSTU