class mathopr
{ public static void main(String arg[])
{ int a,b,c;
a = Integer.parseInt(arg[0]);
b = Integer.parseInt(arg[1]);
c = a+b;
System.out.println("Addition is " +c);
c = a-b;
System.out.println("Substraction is " +c);
c = a*b;
System.out.println("Multiplication is " +c);
c = a/b;
System.out.println("Division is " +c);
c = a%b;
System.out.println("Modulus is " +c);
}
}
No comments:
Post a Comment