Question: import java.util.Scanner; public class DebugTwo 2 { public static void main ( String args [ ] ) { int a , b; Scanner input =

import java.util.Scanner;
public class DebugTwo2
{
public static void main(String args[])
{
int a, b;
Scanner input = new Scanner(System.in);
System.out.print("Enter an integer >>");
a = nextInt();
System.out.print("Enter another integer >>");
b = nextInt();
System.out.print1n("The sum is "+(a + b));
System.out.println("The difference is "+(a - b));
System.out.println("The product is "+(a * b));
}
}

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!