I want to make a program where the user gives as input an integer or Q to quit. The problem is hot to know if user gives int or char.