Condition is apply but code not terminate

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 ->