Write a complete "C program" (not python) that uses an if else statement to validate the users input to be in the range 1-10. The number is entered by the user and the program will determine if the number is between 1 and 10. If the number entered is less than 1, the program will print “Number is below 1.”. If the number entered is greater than 10, the program will print “Number is above 10.”. If the number is between 1 and 10, the program will print the number.
Sample OutputEnter a number between 1 and 10 --> 12Number is above 10.Enter a number between 1 and 10 --> 5The number is 5
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here