Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse Export
https://www.eclipse.org/forums/index.php/mv/msg/272790/774016/#msg_774016
Code:
import java.util.Scanner;
public class Addition {
public static void main(String[] args) {
System.out.println("Welcome To The Addition Calculator");
System.out.println("Please Type The First Number:");
Scanner scan = new Scanner(System.in);
double num1 = scan.nextDouble();
System.out.println("Please Type The Second Number:");
double num2 = scan.nextDouble();
double num3 = num1 + num2; //you could use int instead of double
System.out.println("The Anwser Is: " + num3);
}