Using flowchart and pseudo code write a program that accepts four numbers and computes the sum, average and product of numbers
1 Set sum equal 0
2 Set prod equal 1
3 Set i equal 1
4 Read a number
5 Add a number to sum
6 Multily prod by a number
7 Increment i by 1
8 If i less or equal 4 go to step 4
9 Set avg equal sum / 4
10 Print sum
11 Print avg
12 Print prod
Comments
Leave a comment