0

How do we do int x4 int y 2

13th May 2017, 2:45 PM
Shakirah Owolabi
Shakirah Owolabi - avatar
2 Answers
+ 2
Explain in detail.
13th May 2017, 3:01 PM
Vishal Prajapati
+ 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); } }
13th May 2017, 3:15 PM
Saraf Uddin
Saraf Uddin - avatar