Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout<<"First question!n";
- cout<<"What is 1 + 1?n";
- cout<<"A: 1n";
- cout<<"B: 2n";
- cout<<"C: 3n";
- cout<<"D: 4n";
- cin>>answer;
- if (answer == "B") {
- sr=sr+1;
- }
- else {
- sr=sr-1;
- }
- if (sr==1) {
- cout<<"Second question!n";
- cout<<"What is the square root of 64?n";
- cout<<"A: 4n";
- cout<<"B: 9n";
- cout<<"C: 8n";
- cout<<"D: 6n";
- cin>>answer;
- if (answer == "C") {
- sr=sr+1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement