Advertisement
PiotrJurek

Zad1

Apr 17th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. #include <windows.h>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. char kontynuacja;
  11. srand(time(NULL));
  12. do
  13. {
  14. system("cls");
  15. cout << rand()%10 << endl;
  16. cout << rand()%10 << endl;
  17. cout << rand()%10 << endl;
  18. cout << "Wpisz T aby kontynuowac" << endl;
  19. cin >> kontynuacja;
  20. }
  21. while(kontynuacja=='t');
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement