CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;
int main() {
string MyAnswer;
string Questions[3] = {"a b", "c d", "e f"};
string Answers[3] = {"g h","i j", "k l"};
for(int i = 0; i<3; i++){
cout << Questions[i] <<endl;
cin >> MyAnswer;
if (MyAnswer.compare(Answers[i]) == 0) {
cout << "Well Done!";
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run