Advertisement
eg0rmaffin

ft_countdown

Jul 25th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. int     main()
  4. {
  5.     int run = 10;
  6.     char a = '9';
  7.     while (run > 0)
  8.     {
  9.         write(1, &a, 1);
  10.         a = a - 1;
  11.         run--;
  12.     }
  13.     write(1, "\n", 1);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement