package javaapplication5;
import java.util.Scanner;
/**
*
* @author HeroWin
*/
public class JavaApplication5 {
private static double answer;
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner b = new Scanner(System.in);
double fnum, snum, awnser;
System.out.println("Enter Your First #: ");
fnum = b.nextDouble();
System.out.println("Enter Your Second #: ");
snum = b.nextDouble();
answer = fnum + snum;
System.out.println(answer);
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.