Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <ctime>
  4. using namespace std;
  5. int main()
  6. { int i;
  7. int t;
  8. char ch;
  9. srand (time(NULL));
  10. //for (i=0; i<10; i++)/
  11. do
  12. {
  13. cout << "Rozpocznij losowanie! (T/N) \n";
  14. cin>>ch;
  15. cout <<rand()%6+1<<"\n";
  16. }
  17. while (ch!='n');
  18. system ("pause");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement