Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- #include <dos.h>
- #include <windows.h>
- using namespace std;
- void Odliczanie(int i);
- int main()
- {
- Odliczanie(10);
- cout << "RAKIETA WYSTARTOWALA !!!\n";
- getch();
- return 0;
- }
- void Odliczanie(int i)
- {
- cout << "Rakieta startuje za " << i << " sek.\n";
- Sleep(1000);
- if (i > 0) {
- Odliczanie(i - 1); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement