Why a character doesn't control the loop while an integer does? -


i have written while loop. each time @ entry checks if loop control variable equal 'y'. @ end of loop,the user enters choice loop run further or not entering value character variable(if yes user enters 'y' else 'n'). after 1 time,the loop doesn't execute further evenif user had entered 'y'. if use integer variable in place of character variable,the program works fine.why?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -