Advertisement
-Annie-

02.SumTwoNumbers

Aug 6th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class SumTwoNumbers {
  6.     public static void main(String[] args) {
  7.         Scanner scanner = new Scanner(System.in);
  8.         double a = scanner.nextDouble();
  9.         double b = scanner.nextDouble();
  10.         double result = a + b;
  11.         System.out.println(result);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement