Question: **Use C and only *** https://onlinegdb.com/HJ2aXV0P7 The above link program involves looking at the user's input. For the program, it only takes integers, so if
**Use C and only
https://onlinegdb.com/HJ2aXV0P7
The above link program involves looking at the user's input. For the program, it only takes integers, so if the user happens to input something else, like a string of characters, or character, it'll prompt the user to input an integer. The problem I'm having is that when I try to mesh these two conditions together into the while loop, then nothing happens when I enter a negative value.
Purpose of program:
This program is supposed to take positive integer input from the user, and return the integer that they have entered. However, if the user does not enter an integer or positive number, then the user is to be prompted to either input a positive number (case of a negative number) or to enter a number (case of string/characters).
Please help me, your help is greatly appreciated!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
