Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include <time.h>
  4. using namespace std;
  5.  
  6. int main(){
  7. int x;
  8. int choice;
  9. int answer;
  10. srand ( time(NULL) );
  11. for(int m = 0; m < 30; m++){
  12.  
  13. x = rand()%60;
  14.  
  15. choice = rand()%1;
  16. if(choice == 1){
  17. cout << x << endl;
  18. cout << "+25?" << endl;
  19. cin >> answer;
  20. if (answer == (x+25)%60){
  21. cout << "good workd idiot" << endl;
  22. cout << endl;
  23. cout << endl;
  24. cout << endl;
  25. }else{
  26. cout << "nope dumbass, answers is " << (x+25)%60 << endl;
  27. cout << endl;
  28. cout << endl;
  29. cout << endl;
  30. }
  31. }
  32.  
  33.  
  34. if(choice == 0){
  35. cout << x << endl;
  36. cout << "+35?" << endl;
  37. cin >> answer;
  38. if (answer == (x+35)%60){
  39. cout << "good workd idiot" << endl;
  40. cout << endl;
  41. cout << endl;
  42. cout << endl;
  43. }else{
  44. cout << "nope dumbass, answers is " << (x+35)%60 << endl;
  45. cout << endl;
  46. cout << endl;
  47. cout << endl;
  48. }
  49. }
  50. }
  51.  
  52.  
  53.  
  54. }
Add Comment
Please, Sign In to add comment