In this, we are going to see the program of sum and difference in Java .
class q1
{
public static void main(String[] args)
{
int a=25, b=16;
int s = a + b;
int d = a - b;
System.out.println("Sum="+s);
System.out.println("Difference="+d);
}
}
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP