Question: Integers inputNum 1 and inputNum 2 are read from input. Write one if statement and one if - else statement: If inputNum 1 is less

Integers inputNum1 and inputNum2 are read from input. Write one if statement and one if-else statement:
If inputNum1 is less than or equal to 10, then output "inputNum1 is less than or equal to 10."
If inputNum2 is greater than 25, then assign inputNum2 with 1.
Otherwise, output "inputNum2 is less than or equal to 25."
End each output with a newline.

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 Programming Questions!