Each algorithm instruction is independent of each other and
[Each algorithm instruction is independent of each other and should be evaluated separately.] [From book Problem Solving and Programming Concepts Ch. 5]
Correct the following algorithm instructions:
1. A + B = C
2. Output A, B, C
3. Input A, B, C
4. Enter a, b, and c
5. Stop
6. Goto Calc
7. A = 5 B * C
8. 7 = B + A
9. Input A = 5, B
10. Print \"A\", B = 9, C, D
Solution
The corrected instructions are as follows:
1.C= A+B
2. Output A, B, C
3. Input A, B, C
4. Enter a, b, and c
5. Stop
6. Goto Calc
7. A = 5 *B * C
8. A=7+B
9. Input A = 5, B=0
10. Print \"A\", B = 9, C, D
![[Each algorithm instruction is independent of each other and should be evaluated separately.] [From book Problem Solving and Programming Concepts Ch. 5] Correct [Each algorithm instruction is independent of each other and should be evaluated separately.] [From book Problem Solving and Programming Concepts Ch. 5] Correct](/WebImages/34/each-algorithm-instruction-is-independent-of-each-other-and-1101612-1761582167-0.webp)