JKL

Exit program

#include<iostream>
#include<string>
using namespace std;
int main() {
string text;
cout << "Please enter the sentence..." << endl << endl;
cout << ": ";
cin >> text;
if (text == "exit")
exit(100);
else
cout << endl << text << endl;
return 0;
}
\ No newline at end of file