Advertisement
Guest User

Untitled

a guest
Jan 30th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <windows.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int second1 = 0,second2 = 0;
  9.     bool keepGoing(true);
  10.  
  11.     do {
  12.   while (second2 < 9) {
  13.     second2++;
  14.     cout << second1 << second2;
  15.     Sleep(1000);
  16.     system("CLS");
  17.     keepGoing = true;
  18.   }
  19.  
  20.   while (second2 != 0) {
  21.     second1++;
  22.     second2 = 0;
  23.     cout << second1 << second2;
  24.   }
  25.     } while (keepGoing = true);
  26.  
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement