This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 30th, 2013  |  syntax: C++  |  size: 0.46 KB  |  views: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data