15,891,867 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Hussainomer (Top 2 by date)
Hussainomer
15-Feb-20 12:01pm
View
Basically, the assignment is asking me to output two different options (option1 and option2), I got the option1 part working out but idk how to make the option2 part running, so it's different than options1.
Instructions:
Option 2:
The same as Option 1, except no more than one statement is output. The statement should only mention the lowest boundary number that applies.
Restriction: You may not use compound Boolean expressions! ( && or || )
Input
Input Expected Output
2
2 2 is less than 5
2
7 7 is less than 10
2
14 14 is less than 20
the first number is the options2, and second is the value
Hussainomer
15-Feb-20 11:42am
View
I got the first option part running but how do I modify or change the scanner so option2 becomes another option.