JakubKaczmarek_123

zadanie 4

Feb 12th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main(){
  7. srand(time(NULL));
  8. for (int i = 0; i < 50; i++){
  9. int k = rand()%2;
  10. if (k==0) cout << "reszka" << endl;
  11. else cout << "orzel" << endl;
  12. }
  13.  
  14. //liczby wygladaja na losowe
  15. }
Advertisement
Add Comment
Please, Sign In to add comment