Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Line 20) I want the output of the program to say Invalid Input if the user enters a number less than 1 or greater than
(Line 20) I want the output of the program to say "Invalid Input" if the user enters a number less than 1 or greater than 100. My code works if I enter a number greater than 100, but not when I enter a number less than 1.
For example, when the user input is 305, it will successfully output "Invalid Input"
But when the user input is 0, it won't say anything
8 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started