Skip to content

Commit 2f356a7

Browse files
feature/calculator : modified add()
1 parent 14acf1d commit 2f356a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/Calculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ public class Calculator {
22

33
// Method to add two numbers
44
public int add(int a, int b) {
5-
return a + b;
5+
return a + b + 42; // Adding 42 to the sum
66
}
77

88
// Method to subtract two numbers

0 commit comments

Comments
 (0)