Carlettos

a/b=c

Dec 3rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public class Campus {
  2.  
  3.     public static void main(String[] args) {
  4.         System.out.println("num 1");
  5.         double a = new java.util.Scanner(System.in).nextDouble();
  6.         System.out.println("num 2");
  7.         double b = new java.util.Scanner(System.in).nextDouble();
  8.         System.out.println((double)(a / b));
  9.     }
  10. }
Add Comment
Please, Sign In to add comment