/*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);
}
}
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