You and your friends are out for lunch and have ordered three different items. To help settle the bill, you need to find the total cost.
The program will receive three integers, each representing the price of one item. Your task is to calculate the sum of these three prices and then output the total amount.
Example Input & Output
Example 1
Input
a = 2, b = 3, c = 4
Output
9
Explanation
2 + 3 + 4 = 9.
Example 2
Input
a = -2, b = 7, c = 1
Output
6
Explanation
-2 + 7 + 1 = 6.
Example 3
Input
a = 10, b = 0, c = 5
Output
15
Explanation
10 + 0 + 5 = 15.
Algorithm Flow

Recommendation Algorithm Flow for Sum Three Numbers
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
Solutions Coming Soon
Verified best solutions for this Challenge are still being analyzed and will be available soon.
Comments (0)
Join the Discussion
Share your thoughts, ask questions, or help others with this Challenge.
