Write the pseudocode for a program that will continue prompting a user for a value whilst the total of all values remain less than 100. The program must keep track of the number of times the loop executes and display the number of times the loop executed once the loop had finished executi
1
Expert's answer
2020-11-23T06:38:22-0500
counter = 0
total = 0
while total < 100
print "Enter a value"
total = total + readValue()
counter = counter + 1
print counter
Comments
Leave a comment