Advertisement
Lukasz_Miskiewicz

s2 zadanie 4

Apr 17th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int a=1;
  9. if((rand()%(a+1))==1)
  10. {cout<<"reszka"<<endl;}
  11. else
  12. {cout<<"orel"<<endl;}//Uzyskane wyniki nie wyglądają na losowe
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement