If userNum1 is less than 0, put "userNum1 is negative.\n" to output. If userNum2 is greater than 8, assign userNum2 with 0. Else, put "userNum2 is less than or equal to 8.\n".

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

If userNum1 is less than 0, put "userNum1 is negative.\n" to output.

If userNum2 is greater than 8, assign userNum2 with 0. Else, put "userNum2 is less than or equal to 8.\n".

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,