QuickTest Professional
The One you can learn
Right Click Disabled
Wednesday, February 22, 2012
VBScript code in QTP to create an array with five elements to store a student five subject marks and display total marks
Option explicit
Dim marks(4), i, total
total=0
For i=0 to 4 step 1
marks(i)=inputbox("Enter marks :")
total=total+marks(i)
Next
msgbox("Total marks of student : "&total)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment