Advertisement
NuquernaNarsil

Untitled

Oct 8th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <conio.h>
  4. #include <ctime>
  5.  
  6. using namespace std;
  7.  
  8. main()
  9. {
  10. int los, ile;
  11.  
  12. srand(time(NULL));
  13. cout <<"\nPodaj ile platkow ma miec stokrotka: ";
  14. cin >> ile;
  15.  
  16. for(int i=0; i<ile; i++)
  17. {
  18. los=rand()%2;
  19. if(los==1)
  20. cout <<"\nNie kocha";
  21. else
  22. cout <<"\nKocha";
  23.  
  24. }
  25. if(los==1)
  26. cout <<"\nJestes przegrana kurwa";
  27. else
  28. cout <<"\nFarciarz.";
  29.  
  30. getch();
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement