유재상

echo_program_exit.cpp added

1 +#include <iostream>
2 +#include <string>
3 +using namespace std;
4 +
5 +int main() {
6 + string str1;
7 + cin >> str1;
8 +
9 + if (str1 == "exit") {
10 + exit(0);
11 +
12 + }
13 + cout << str1 << endl;
14 +
15 +
16 + return 0;
17 +}
...\ No newline at end of file ...\ No newline at end of file