Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <Windows.h>
  4. using namespace std;
  5.  
  6. void main(){
  7. int n = 0;
  8. int i = 1;
  9.  
  10.  
  11. while (true){
  12.  
  13. cout << string( n, ' ') << "*** *** *** ***" << endl;
  14. n = n + i;
  15. if (n == 10 || n == 0){
  16. i = -1 * i;
  17.  
  18.  
  19. }
  20.  
  21.  
  22. Sleep(50);
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement