vencinachev

Money

Oct 3rd, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Program {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scan = new Scanner(System.in);
  7.         System.out.print("a: ");
  8.         double a = scan.nextDouble();
  9.         System.out.print("b: ");
  10.         double b = scan.nextDouble();
  11.         double result = a + b;
  12.         System.out.println("Result = " + result);
  13.     }
  14.  
  15. }
Add Comment
Please, Sign In to add comment