Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- #include <time.h>
- using namespace std;
- int main(){
- int x;
- int choice;
- int answer;
- srand ( time(NULL) );
- for(int m = 0; m < 30; m++){
- x = rand()%60;
- choice = rand()%1;
- if(choice == 1){
- cout << x << endl;
- cout << "+25?" << endl;
- cin >> answer;
- if (answer == (x+25)%60){
- cout << "good workd idiot" << endl;
- cout << endl;
- cout << endl;
- cout << endl;
- }else{
- cout << "nope dumbass, answers is " << (x+25)%60 << endl;
- cout << endl;
- cout << endl;
- cout << endl;
- }
- }
- if(choice == 0){
- cout << x << endl;
- cout << "+35?" << endl;
- cin >> answer;
- if (answer == (x+35)%60){
- cout << "good workd idiot" << endl;
- cout << endl;
- cout << endl;
- cout << endl;
- }else{
- cout << "nope dumbass, answers is " << (x+35)%60 << endl;
- cout << endl;
- cout << endl;
- cout << endl;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment