Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int moneta;
- srand(time(NULL));
- moneta = rand()%2;
- if(moneta==0)
- {
- cout << "Reszka" << endl;
- }
- else if(moneta==1)
- {
- cout << "Orzel" << endl;
- }
- return 0;
- }
- //Liczby wydaja sie losowe.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement