Advertisement
airevent

Untitled

Dec 1st, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6.     char word[] = "PIPISKA";
  7.     size_t len = strlen(word);
  8.     while ( len-- > 0 ) {
  9.         printf("\r%s ", word);
  10.         fflush(stdout);
  11.         word[len] = 0;
  12.         sleep(1);
  13.     }
  14.     printf("\r \n");
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement