Advertisement
ismail5g

Scanner Input

Mar 2nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2. class JavaApplication1 {
  3.  
  4.     public static void main(String[] args) {
  5.         int t, n, m, i;
  6.         Scanner input=new Scanner(System.in);
  7.         t=input.nextInt();
  8.         n=input.nextInt();
  9.         m=t+n;
  10.         System.out.println("Summation of "+t+" and "+n+" is: "+m);
  11.     }
  12.    
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement