answersLogoWhite

0

The sum of two consecutive numbers 118?

Updated: 4/28/2022
User Avatar

Wiki User

14y ago

Best Answer

#include <iostream>

using namespace std;

int main()

{

cout << "Enter a number: ";

int target;

cin >> target;

int num = 0;

int sum;

while ((sum != target) && (num <= target))

{

num++;

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

if (num == target)

{

cout << "No consecutive sums found.";

return 0;

}

}

cout << "The two consecutive numbers adding up to " << target << " are: \n" << num << "\n" << (num + 1);

return 0;

}

----------------------------

Use this c++ code.

P.S. that's impossible because the sum of two consecutive integers (which means an odd and an even) has to be odd.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The sum of two consecutive numbers 118?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are two consecutive integers that have the sum of 238?

There are two consecutive even integers. The numbers are 118 and 120.


The sum of two consecutive numbers is 118 What must you do to get to the next greater even integer?

The sum of 2 consecutive numbers cannot be 118, because you cannot get an even number when you add an even and an odd number.


What are the two consecutive numbers with the sum of 142?

There are no two consecutive whole numbers that sum to 142.With two consecutive whole numbers, one is even and the other odd, and their sum will be odd, but 142 is even.Two consecutive even numbers that sum to 142 are 70 and 72.


What consecutive numbers have a sum of 2012?

No two consecutive integers have a sum of 2012.


Is the sum of two consecutive numbers always divisible by 2?

No, the sum of two consecutive numbers is always an odd number, and is not divisible by two.


Two consecutive 4 digit numbers have a sum of 9173 what are the 2 numbers?

two consecutive 4- digit numbers have a sum of 9173.what are the numbers?


What are two consecutive numbers whose sum is 126?

There are two consecutive even numbers. The numbers are 62 and 64.


If there is 2 consecutive numbers and the sum is 110 what are the two consecutive numbers?

The numbers are 54 and 56.


How can I find two consecutive numbers that 118 lies between?

If you mean two consecutive odd numbers then they are 117 and 119


What are four consecutive numbers that add up to 35?

There are no four consecutive whole numbers that add up to 35. The sum of two consecutive [whole] numbers is an even number plus an odd number which is an odd number. The sum of two consecutive numbers and the two next consecutive numbers is the sum of two odd numbers which is even, but 35 is odd, so no four consecutive whole numbers cannot add up to 35.


What two consecutive numbers equal 70?

There are no two consecutive numbers that equal 70 because the sum of any two consecutive numbers is an odd number.


Is 2001 the answer of the sum of four consecutive integers?

No. The sum of four consecutive integers is two odd numbers plus two even numbers which is an even number. 2001 is an odd number, therefore it cannot be the sum of four consecutive numbers.