Imports System
Public Module Module1
Public Sub Main()
dim number(0 to 10) as integer 'dimensioning the array number
dim total as integer
dim count as integer =1
while count <11
console.write("Number") : console.writeline(count)
number(count) = console.readline
'this is for adding each number into a variable total
total=total+number(count)
count=count+1 'one extra statement to increment count
end while
'now we print the total after the loop has ended
console.writeline(""):console.writeline("")
console.Write("The total is : "): console.writeline(total)
End Sub
End Module