Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Identify and correct the error(s) in each of the following (you may simply need to add code): Assume that z has been initialized to 50.
Identify and correct the error(s) in each of the following (you may simply need to add code):
Assume that z has been initialized to 50. The values from 0 to 50 should be totaled.
While (z>=0)
sum = sum + z
Assume that y and total are declared as Integers
total = 0
Do Until y = -1
Print y
y = InputBox(Enter a value, value input)
total = total + y
Loop
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started