Input white spaces

why sir hd taken an exclamatry mark in while(ch!=$)

hi @agarwaldaksh360_2bae042448e62c08 as he needs to count all the chars before dollar
so we wrote while(ch != '$') by this it will count till dollar

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

oh oh so ‘!’ means ‘‘till’’

@agarwaldaksh360_2bae042448e62c08 ! means not, while char not equal to $

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.