YJ-062\Administrator

exitt prog

#include<iostream>
#include<string>
using namespace std;
void exitt()
{
string st;
while(1)
{
cout<<"Enter:";
cin>>st;
if(st=="exit")
{
return;
}
}
}
int main()
{
exitt();
return 0;
}
\ No newline at end of file
No preview for this file type