Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CHALLENGE ACTIVITY 2.12.2: If and if-else branches. 546028.3660044.qx3zqy7 Jump to level 1 If userNum1 is less than 0, put userNum1 is negative. to
CHALLENGE ACTIVITY 2.12.2: If and if-else branches. 546028.3660044.qx3zqy7 Jump to level 1 If userNum1 is less than 0, put "userNum1 is negative. " to output. If userNum2 is greater than 9, assign userNum2 with 0. Else, put "userNum2 is less than or equal to 9. ". 1 integer userNum1 2 integer userNum2 3 4 // Program will be tested with three sets of inputs: 5 // First: 0 14 6 // Second: -19 7 // Third: 1-2 8 userNum1 = Get next input 9 userNum2 = Get next input 10 11 12 // Your solution goes here 13 Variables Not shown when editing 14 15 Put "userNum2 is to output 16 Put userNum2 to output Code Flowchart 2
Step 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