echo.cpp
355 Bytes
#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
while(1){
cout << "Implements echo program\n";
cout << "If you want exit, Input \"exit\" : ";
cin >> str;
if(str == "exit"){
exit(100);
}
else cout << "Output >> " << str << endl;
}
return 0;
}