Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <Windows.h>
- using namespace std;
- void main(){
- int n = 0;
- int i = 1;
- while (true){
- cout << string( n, ' ') << "*** *** *** ***" << endl;
- n = n + i;
- if (n == 10 || n == 0){
- i = -1 * i;
- }
- Sleep(50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement