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 gracz_1;
- int gracz_2;
- int wygrane;
- int przegrane;
- int remisy;
- int liczba_rozgrywek;
- int i=0;
- int p1,p2,p3,p4,q1,q2,q3,q4;
- int a,b,c,d,e;
- cin>>liczba_rozgrywek;
- srand(time(NULL));
- cin>>gracz_1;
- p1=rand()%4+1;
- cout<<p1<<" ";
- p2=rand()%4+1;
- cout<<p2<<" ";
- p3=rand()%4+1;
- cout<<p3<<" ";
- p4=rand()%4+1;
- cout<<p4<<" ";
- cin>>gracz_2;
- q1=rand()%4+1;
- cout<<q1<<" ";
- q2=rand()%4+1;
- cout<<q2<<" ";
- q3=rand()%4+1;
- cout<<q3<<" ";
- q4=rand()%4+1;
- cout<<q4<<" ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement