In this case, we'll have to carry out several steps to find the solution.
Step 01:
Data
integer 1
integer 2
sum = 49
Step 02:
two consecutive integers:
integer 1 = x
integer 2 = x + 1
integer 1 + integer 2 = 49
x + x + 1 = 49
2x = 49 - 1
x = 48 / 2
x = 24
x + 1 = 24 + 1 = 25
The answer is:
integer 1 = 24
integer 2 = 25