Question: Write a program that uses a Scanner object to read in two different integers. It will print 1 if the numbers are the same or

 Write a program that uses a Scanner object to read in

Write a program that uses a Scanner object to read in two different integers. It will print 1 if the numbers are the same or it will print 0 if the numbers are different. Use an if/else statement in your program - do not use the Math class. Example Sample Input (on one line) Sample Output 39 13 13 Problem4.Java New Full

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!