SHARE
TWEET

Untitled

a guest Sep 13th, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     const char *alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  5.     int i = 0;
  6.     int len = 0;
  7.     int maxlen = 1;
  8.  
  9.     while (maxlen < 52) {
  10.         putchar(alpha[i++]);
  11.         i %= 26;
  12.         if (++len >= maxlen) {
  13.             putchar('\n');
  14.             len = 0;
  15.             maxlen += 2;
  16.         }
  17.     }
  18. }
RAW Paste Data
Top