On Dec 5, 2:00 am, Ben Bacarisse <ben.use...@bsb.me.uk> wrote:
> "j.smit...@googlemail.com" <j.smit...@googlemail.com> writes:
> > Now it gives following output, but it is not the expected output.
> > I still could not find what the problem is.
>
> This is question 12.18b of the C FAQ:
>
> http://c-faq.com/stdio/scanfc.html
>
> > Please enter the input character :
>
> > y
> > You have entered: y (decimal 121)
> > HIIIIIIIII
> > Please enter the input character :
>
> > You have entered:
> > (decimal 10)
> > Please enter the input character :
>
> <snip similar>
>
> PS. Please snip your replies to include on the parts you are
> commenting on.
>
> --
> Ben.
Hello all,
Still I could not solve the problem mentioned.
Do anyone can tell "if I want to run for loop from 1 to 5, everytime
it ask user to enter a character , and if that
character is same with y, then print "Hello" ".
Thank you.
smith