Sum Three Numbers
Adding things up is the bread and butter of any calculation system. In Sum Three Numbers, you are practice basic accumulation by taking three different values and combining them into a single total.
Think of it like adding items to a shopping cart or totaling up points in a three-round game. You just need to take each of the three inputs and add them together to get the final result.
If your inputs are 1, 2, and 3, you simply add them up to get 6. It''s a fundamental exercise in handling multiple inputs and producing a single, correct sum.
Example Input & Output
2 + 3 + 4 = 9.
-2 + 7 + 1 = 6.
10 + 0 + 5 = 15.
Algorithm Flow

Solution Approach
First, read the three integers.
Then add the first number, second number, and third number into one total.
Store that total in a variable if you want, or print it directly after the calculation.
At the end, output the sum.
Best Answers
program sum_three_numbers
dictionary
a, b, c, sum: integer
algorithm
input(a, b, c)
sum <- a + b + c
output(sum)
endprogramComments (0)
Join the Discussion
Share your thoughts, ask questions, or help others with this Challenge.
