4. Write a program that does the following: a. Ask the user for two numbers between 0 and 1000, and store their answers
Posted: Fri Jul 08, 2022 7:28 am
4. Write a program that does the following: a. Ask the user for two numbers between 0 and 1000, and store their answers using two variables **Hint: You need to cast your user's input into an int. b. If the numbers are not between 0 and 1000, print out a message to the user that says their input is invalid **Hint: You could use a logical operator (and, or, not) here C. Otherwise, subtract the second number from the first number (i.e. first number - second number), and print out 'negative' or 'positive' (all lowercase) to indicate whether the difference is either negative or positive