Advertisement
madhawaseeeee

jsin

Jun 11th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public static void main(String[] args) throws IOException {
  2. int i,j,k;
  3. System.out.println("enter value of i: ");
  4. i=System.in.read();
  5. System.out.println("enter value of j: ");
  6. System.in.read();
  7. j=System.in.read();
  8.  
  9. k=i+j;
  10.  
  11. System.out.println("sum is: "+k +" "+j);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement