Write code that uses an if statement to compare two variables and display all of the results
Fantastic news! We've Found the answer you've been seeking!
Question:
Write code that uses an if statement to compare two variables and display all of the results that apply. The comparisons that are used should include the following: <,≤, >, ≥, ≠ and =.
- Declare the two integers that will be used throughout this code.
- Use the function learned in the previous lab to display a message on the screen that prompts the user to enter the variables.
- Use a function to read the two variables that were written by the user.
- Write an if statement that compares the two numbers to see if they are equal and displays the result.
- Write that if statement in the space provided.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: