Frooster

rOCKET

Jan 5th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3.  
  4. const char rocket[] =
  5. "           _\n\
  6.          /^\\\n\
  7.          |-|\n\
  8.          | |\n\
  9.          |I|\n\
  10.          |S|\n\
  11.          |R|\n\
  12.          |O|\n\
  13.         /| |\\\n\
  14.        / | | \\\n\
  15.       |  | |  |\n\
  16.        `-\"\"\"-`\n\
  17. ";
  18.  
  19. int main()
  20. {
  21.     for (int i = 0; i < 50; i ++) printf("\n");
  22.     printf("%s", rocket);
  23.     int j = 300000;
  24.     for (int i = 0; i < 50; i ++) {
  25.         usleep(j);
  26.         j = (int)(j * 0.9);
  27.         printf("\n");
  28.     }
  29.     return 0;
  30. }
Add Comment
Please, Sign In to add comment