Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <ctime>
- using namespace std;
- int main()
- { int i;
- int t;
- char ch;
- srand (time(NULL));
- //for (i=0; i<10; i++)/
- do
- {
- cout << "Rozpocznij losowanie! (T/N) \n";
- cin>>ch;
- cout <<rand()%6+1<<"\n";
- }
- while (ch!='n');
- system ("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement