answersLogoWhite

0

Two consecutive numbers with the sum of 103 are 51 and 52.Here's a fun way to figure it out using c++ (can me modified to find any two consecutive numbers adding up to the variable target):

#include

using namespace std;

int main()

{

int target = 103;

int num = 0;

int sum;

while (sum != target)

{

num++;

sum = (num + (num+1));

}

cout << num << "\n" << (num+1);

return 0;

} Or, more simply stated: add one to the target (eg., 103+1=104) and then divide by 2 (104/2=52) This will give the second consecutive number. The first is one less, 51.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ReneRene
Change my mind. I dare you.
Chat with Rene
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao

Add your answer:

Earn +20 pts
Q: Two consecutive numbers with a sum of 103?
Write your answer...
Submit
Still have questions?
magnify glass
imp