Why do we need cin.get() in while loop

Why did you use ch=cin.get() in the 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 :smiley:

1 Like