Question: I have a question regarding if, else statements. Use the selection statement if to decide whether the first user input number is greater than or

I have a question regarding if, else statements.

Use the selection statement if to decide whether the first user input number is greater than or equal to the second and display the sum. Otherwise display the difference of the two user inputs as your output.

I am having a hard time writing the code to display the sum and display the difference of the two user inputs.

I believe I need to define the sum code and the difference code.

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!