이학주

exit

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