Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement