Showing
1 changed file
with
19 additions
and
0 deletions
Echo/Echo/source.cpp
0 → 100644
1 | +#include <iostream> | ||
2 | +#include <string> | ||
3 | + | ||
4 | +using namespace std; | ||
5 | + | ||
6 | +int main() | ||
7 | +{ | ||
8 | + string myWord = ""; | ||
9 | + string endCode = ""; | ||
10 | + | ||
11 | + cin >> myWord; | ||
12 | + cout << myWord; | ||
13 | + | ||
14 | + cout << "If you enter 'exit', the program will exit"; | ||
15 | + cin << endCode; | ||
16 | + | ||
17 | + if (endCode == "exit") | ||
18 | + return 0; | ||
19 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment