Advertisement
Carlettos

a+b=c

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