This Program Takes two variables a & b from the user and gives out the result of their addition, subtraction,multiplication and division.
class AddSumMulDiv // By Steve
{
public static void main(int a,int b)
{
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(a/b);
}
}
Sample Input: a=100 and b=5
class AddSumMulDiv // By Steve
{
public static void main(int a,int b)
{
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(a/b);
}
}
Sample Input: a=100 and b=5
No comments:
Post a Comment