public class MyClass {
public static void main(String args[]) {
int a = 100, b=2, c;
c=a+b;
System.out.println("Add : "+c);
c=a-b;
System.out.println("Sub : "+c);
c=a*b;
System.out.println("Mul : "+c);
c=a/b;
System.out.println("Div : "+c);
c=a%10;
System.out.println("Mod : "+c);
}
}
Comments
Post a Comment