Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int answer1;
- cout << "What is 6 + 10?" << endl;
- cin >> answer1;
- if (answer1 == 16)
- {
- cout << "You are a genius!" << endl;
- }
- else
- {
- cout << "Sorry, stay in school man." << endl;
- }
- int answer2;
- cout << "What is 20 - 10?" << endl;
- cin << answer2;
- if (answer2 == 10)
- {
- cout << "You are a genius!" << endl;
- }
- else
- {
- cout << "Sorry, stay in school man." << endl;
- }
- int answer3;
- cout << "What is 100 + 1?" << endl;
- cin << answer3;
- if (answer3 == 101)
- {
- cout << "You are a genius!" << endl;
- }
- else
- {
- cout << "Sorry, stay in school man." << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment