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
Post a Comment