eg0rmaffin

maff_revalpha

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