CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <cstring>
using namespace std;
int main() {
string wort;
cout << "Was ist die Hauptstadt von Deutschland" << endl;
cin >> wort;
if (wort=="Berlin") {
cout<<"Antwort ist korrekt\n";
} else {
cout << "Answer is wrong!\n";
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run