Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5. int q1;
  6. int q2;
  7. int q3;
  8. int d4;
  9. int q5;
  10. int total;
  11. int main(int argc, char *argv[])
  12. {
  13. cout << "Question 1.. " << endl;
  14. Sleep(500);
  15. cout << " What is 2/4 + 2/4? " << endl;
  16. cout << "A) 4/8 " << endl;
  17. cout << "B) 4/4 " << endl;
  18. cout << "C) 8/4 " << endl;
  19. cout << "D) 1009409/3i45903 " << endl;
  20. cout << " " << endl;
  21. cout << "Choose Wisely.. " << endl;
  22. cin >> q1;
  23. if(q1 == "B" || "b") << endl;
  24. cout << "Correct! " << endl;
  25. total ++;
  26. else;
  27. cout << "Incorrect.. " endl;
  28. }
  29.  
  30. cout << "Next Question.. " << endl;
  31.  
  32. system("PAUSE");
  33. return EXIT_SUCCESS;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement