Write your question here.3. Write a C++ program that would input a number and output the sum of the number from 1 up to the number inputted.
Example:
if 4 is inputted the sum is 10 i.e.: 1 + 2 + 3 + 4
if 10 is inputted the sum is 55 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10
if not show the code. Write an algorithm how to break this problem down to smaller terms. *Tell us how you would solve the problem with words instead of code.