int main(){
char ch;
ch= cin.get();
while(ch!=’#’){
cout<<ch;
ch=cin.get();
}
return 0;
}
my code not terminate taking input # .why ?
int main(){
char ch;
ch= cin.get();
while(ch!=’#’){
cout<<ch;
ch=cin.get();
}
return 0;
}
my code not terminate taking input # .why ?
It’s working fine, see now ->