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