Skip to content

Commit 85752ae

Browse files
committed
feat: Add BooleanCalculator class to perform integer multiplication
Add a new class that demonstrates basic integer multiplication using variables. Includes: - Declaration and initialization of integer and boolean variables - Multiplication of three integers - Output of the result.
1 parent 767a2cc commit 85752ae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Section5OperatorExpression/1. Fundamentals/Operators/1.6 Boolean Calculator/src/BooleanCalculator.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ public class BooleanCalculator
22
{
33
public static void main(String[] args)
44
{
5-
int a = 3, b = -4, c = 1;
5+
int a = 3,
6+
b = -4,
7+
c = 1;
8+
69
boolean t = true, f = false;
10+
int z = a*b*c;
11+
System.out.println("Multiplication of the numbers is: "+z);
712
}
8-
}
13+
}

0 commit comments

Comments
 (0)