Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- while(true)
- {
- string answer;
- cout << "Question 1: " << "What is test?" << endl;
- getline(cin, answer);
- if (answer == "answer")
- {
- cout << "Correct" << endl;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment