suppose I have a variable of integer type 'a'

now ill ask user to enter an input after he gave an input i want to check weather he entered an integer type or anything else

for the above question what should i have to do