Advertisement
Carlettos

ab y todo eso xd

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