Quality is delighting customers
what error in my prg
Option explicit
Dim marks[4],i,tot
For i=0 To 4 step 1
marks[i]=inputbox("enter subject marks")
Next
tot=0
For i=0 To 4 step 1
tot=cint(tot)+cint(marks[i])
Next
msgbox(tot)
Tags:
Try now with the below code:
Option explicit
Dim marks(4),i,tot
For i=0 To 4 step 1
marks(i)=inputbox("enter subject marks")
Next
tot=0
For i=0 To 4 step 1
tot=cint(tot)+cint(marks(i))
Next
msgbox(tot)
Hi Divya.... While declaring and using array, you have used wrong parenthesis "[]" instead of "()".
thank u.
© 2021 Created by Quality Testing.
Powered by