Question: Program the following in C Make sure in C program! Convert a string into an integer using atoi or sscanf Input an integer between 1-1000000
Program the following in C
Make sure in C program!

Convert a string into an integer using atoi or sscanf Input an integer between 1-1000000 or print x to exit: Error message if not between 1-1000000. Error message if there's a character in the integer Example: 4704 is good 92871b is not good 138b92 is not good b1231 is not good Make sure to keep while loop until x or X is press
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
