Question: An if statement and an if - else statement are used: An if statement evaluates whether userInput 1 < = 2 0 . If userInput

An if statement and an if-else statement are used:
An if statement evaluates whether userInput1<=20. If userInput1<=20, then "userInput1 is less than or equal to 20." is output.
An if-else statement evaluates whether userInput2>=30:
If userInput2>=30, then userInput2 is assigned with 0.
Otherwise, "userInput2 is less than 30." is output.
Not all tests passed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!