196k views
5 votes
Write an algorithm to calculate the sum of three numbers A, B and C​

User Hjsimpson
by
4.2k points

1 Answer

3 votes

Answer:

1. Start

2. Display "Enter three numbers"

3. Input A

4. Input B

5. Input C

6. Sum = A + B + C

7. Display Sum

8. Stop

Step-by-step explanation:

Line 1 and Line 7 of the algorithm implies the start and end of the algorithm, respectively.

Line 2 prompts user for input of three numbers

Line 3 to 5 accept input from user and these inputs are saved in variables A, B and C

Line 6 adds the three inputs and saves the result in variable Sum

Line 7 displays the value of Sum

User WriteToBhuwan
by
4.4k points