Identify and correct the error(s) in the following (you may simply need to add code):
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
Expert's answer
Module Module1
Sub Main()
Dim total AsInteger = 0Dim y AsInteger = 0DoUntil y = -1
Console.WriteLine(y.ToString())
y = InputBox("Enter a value, value input")
total = total + y
Loop
Console.ReadLine()
EndSubEndModule