0
How do we do int x4 int y 2
2 Answers
+ 2
Explain in detail.
+ 1
public class Program {
public static void main(String[] args) {
int x=4 , y=2;
int addition = x+y;
System.out.println(addition);
int subtraction = x-y;
System.out.println(subtraction);
int multiplication = x*y;
System.out.println(multiplication);
int division = x/y;
System.out.println(division);
int modulo = x%y;
System.out.println(modulo);
}
}