Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <conio.h>
  2. #include <iostream>
  3. #include <dos.h>
  4. #include <windows.h>
  5. using namespace std;
  6. void Odliczanie(int i);
  7.  
  8. int main()
  9. {
  10.   Odliczanie(10);
  11.     cout << "RAKIETA WYSTARTOWALA !!!\n";
  12.     getch();
  13.   return 0;
  14. }
  15. void Odliczanie(int i)
  16. {
  17.  
  18.   cout  <<  "Rakieta startuje za " << i << " sek.\n";
  19.   Sleep(1000);
  20.   if (i > 0) {
  21.   Odliczanie(i - 1); }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement