I have done the mario.c prg, it works, but there a small bug. I have put a check for numbers between 0 and 23, but what if user enters an alphabet or a special character. In that case my terminal goes in a infinite loop in which it keeps printing Height without asking for a input. I have used while(height<0 || height>23); I was thinking of including alphabets and symbols using ASCII code but unable to compare height with a alphabet or symbol..
Any one having the same issue?