Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class apples{
- public static void main(String args[]){
- Scanner bucky = new Scanner(System.in);
- double fnum, snum, answer;
- System.out.println("Enter First number: ");
- fnum = bucky.nextDouble();
- System.out.println("Enter Second Number: ");
- snum = bucky.nextDouble();
- answer = fnum + snum;
- System.out.println(answer);
- }
- }
Add Comment
Please, Sign In to add comment