check if entered no is integer or not cPP code example
Example: how to check whether input is string or not
num = input("Enter your number ")
print("\n")
if num.isdigit():
print("User input is Number ")
else:
print("User input is string ")