SHARE
TWEET

Untitled

a guest Nov 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5. int main(){
  6. int gracz_1;
  7. int gracz_2;
  8. int wygrane;
  9. int przegrane;
  10. int remisy;
  11. int liczba_rozgrywek;
  12. int i=0;
  13. int p1,p2,p3,p4,q1,q2,q3,q4;
  14. int a,b,c,d,e;
  15. cin>>liczba_rozgrywek;
  16.  
  17. srand(time(NULL));
  18.  
  19.     cin>>gracz_1;
  20. p1=rand()%4+1;
  21. cout<<p1<<" ";
  22. p2=rand()%4+1;
  23. cout<<p2<<" ";
  24. p3=rand()%4+1;
  25. cout<<p3<<" ";
  26. p4=rand()%4+1;
  27. cout<<p4<<" ";
  28.  
  29. cin>>gracz_2;
  30. q1=rand()%4+1;
  31. cout<<q1<<" ";
  32. q2=rand()%4+1;
  33. cout<<q2<<" ";
  34. q3=rand()%4+1;
  35. cout<<q3<<" ";
  36. q4=rand()%4+1;
  37. cout<<q4<<" ";
  38.  
  39. return 0;
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top