how to write basic programs in VB Script like addition,
multiplication?
Answer Posted / ashok
DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
DIM C
DIM D
C=A+B
MSGBOX ("C is" &C)
C=INT (A)+INT (B)
MSGBOX ("C is" &C)
D=A*B
MSGBOX ("d is" &d)
| Is This Answer Correct ? | 16 Yes | 11 No |
Post New Answer View All Answers
How will you convert a string to lower case string using vbscript?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Which command is used for writing text on a page?
Explain about vb script?
How will you get the last occurrence of one string within another string using vbscript?
How to throw an error in vbscript?
what is the standards used for writing the script in QTP
Mention what is the difference between vbscript and vba?
Explain few date functions in vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
how to set one column as primary key in QTP and fetch values accordingly
What is the extension of the vbscript file?
Explain the operator precedence in vb script?
filter the array values without using filter function?
how to comvert 120 into one hunderd twenty rupees only and vice varsa