ofekkfir

exercise 1

Oct 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.util.*;
  2. public class targil1
  3. {
  4.     static Scanner reader = new Scanner(System.in);
  5.  
  6.     /**
  7.      * @param args
  8.      */
  9.     public static void main(String[] args)
  10.     {
  11.         int x1;
  12.         double x2;
  13.         System.out.println("enter first num");
  14.         x1 = reader.nextInt();
  15.         System.out.println("enter sec num");
  16.         x2 = reader.nextDouble();
  17.         double x3 = x1*x2;
  18.         System.out.println (x1);
  19.         System.out.println (x2);
  20.         System.out.println (x3);
  21.  
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment