Skip to content

Commit 083bda2

Browse files
Create ArthmeticOperator.java
1 parent 5f6cbc0 commit 083bda2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ArthmeticOperator.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class ArithmeticOperators {
2+
public static void main(String[] args) {
3+
int a = 15, b = 4;
4+
5+
System.out.println("a + b = " + (a + b)); // Addition
6+
System.out.println("a - b = " + (a - b)); // Subtraction
7+
System.out.println("a * b = " + (a * b)); // Multiplication
8+
System.out.println("a / b = " + (a / b)); // Division (integer)
9+
System.out.println("a % b = " + (a % b)); // Modulus
10+
}
11+
}

0 commit comments

Comments
 (0)