Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. cout<<"First question!n";
  2. cout<<"What is 1 + 1?n";
  3. cout<<"A: 1n";
  4. cout<<"B: 2n";
  5. cout<<"C: 3n";
  6. cout<<"D: 4n";
  7. cin>>answer;
  8. if (answer == "B") {
  9. sr=sr+1;
  10. }
  11. else {
  12. sr=sr-1;
  13. }
  14. if (sr==1) {
  15. cout<<"Second question!n";
  16. cout<<"What is the square root of 64?n";
  17. cout<<"A: 4n";
  18. cout<<"B: 9n";
  19. cout<<"C: 8n";
  20. cout<<"D: 6n";
  21. cin>>answer;
  22. if (answer == "C") {
  23. sr=sr+1;
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement