Addition and Subtraction of Integer numbers

/*Program to demonstrate the addition and subtraction of Integer numbers*/
 
class AddSubInt
{

  public static void main (String args[])
  {
 
      int i = 5;
      int j = 3;

      System.out.println("i is " + i);
      System.out.println("j is " + j);
 
      int k = i + j;
      System.out.println("i + j is " + k);
   
      k = i - j;
      System.out.println("i - j is " + k);

  }

}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|