This is code : Download code from GitHub , Link is page bellow .
public class Arithmetic {
public static void main(String args[]) {
System.out.println(10+2); // 12
System.out.println(10-2); // 8
System.out.println(10/2); // 5
System.out.println(10*2); // 20
System.out.println(" " + 11%2); // 1
System.out.println(" " + 8/2); // 4
System.out.println(" " + 8%2); //0
}
}
Output Answer :
12
8
5
20
1
4
0
👌 Download Code from GitHub
Tags:
javacode