Question: need help finishing this program: the program is going to add together two numbers we get from the user and output the result import java.util.Scanner;
need help finishing this program:
the program is going to add together two numbers we get from the user and output the result
import java.util.Scanner; public class Simpleaddition {
public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); System.out.print("Enter an integer: "); int v1 = input.nextInt(); System.out.print("Enter the second integer: "); int v2 = input.nextInt(); }
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
