import java.io.*;
public class addsub
{
public static void main(String args[])throws IOException
{
int a,b,s,d;
s=0;
d=0;
InputStreamRead er read=new InputStreamRead er(System.in);
BufferedReader in=new BufferedReader( read);
System.out.prin tln("Enter two numbers");
a=Integer.parse Int(in readLine());
b=Integer.parse Int(in readLine());
s=a+b;
d=a-b;
System.out.prin tln("Sum="+s);
System.out.prin tln("Difference ="+d);
}
}
public class addsub
{
public static void main(String args[])throws IOException
{
int a,b,s,d;
s=0;
d=0;
InputStreamRead er read=new InputStreamRead er(System.in);
BufferedReader in=new BufferedReader( read);
System.out.prin tln("Enter two numbers");
a=Integer.parse Int(in readLine());
b=Integer.parse Int(in readLine());
s=a+b;
d=a-b;
System.out.prin tln("Sum="+s);
System.out.prin tln("Difference ="+d);
}
}
Comment