eg0rmaffin

maff_alpha

Jul 25th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. int     main()
  4. {
  5.     int run = 1;
  6.     char a = 'a';
  7.     while (run < 27)
  8.     {
  9.         if (run % 2 == 0)
  10.         {
  11.             a = a - 32;
  12.             write(1, &a, 1);
  13.             a = a + 32;
  14.             a++;
  15.         }
  16.         else
  17.         {
  18.             write(1, &a, 1);
  19.             a++;
  20.         }
  21.         run++;
  22.     }
  23.     write(1, '\n', 1);
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment