Skip to content

Commit 6e4037c

Browse files
Resolved Merge conflict in add()
2 parents 016cf01 + 2f356a7 commit 6e4037c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/Calculator.java

Lines changed: 2 additions & 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 - 42; // Subtracting 42 from the sum
5+
return a + b + 42; // Adding 42 to the sum
66
}
77

88
// Method to subtract two numbers
@@ -24,3 +24,4 @@ public double divide(int a, int b) {
2424
}
2525
}
2626
}
27+

0 commit comments

Comments
 (0)