Why did you use ch=cin.get() in the while loop??
Why do we need cin.get() in while loop
@rajharsh865 because cin was not reading spaces . as you can see in the video.
i hope its clear if yes dont forget to mark it as resolved 
1 Like