how to write basic programs in VB Script like addition,
multiplication?

Answer Posted / venkat

Dim a
Dim b
a=inputbox("enter a value")
b=inputbox("enter b value")
Dim c
c=int(a)+int(b)
Msgbox c

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get a string with the specified character the specified number of times in vbscript?

571


Explain about the extension .hta?

621


Which constant is used for print and display functions and works as same as pressing enter key?

524


What are the 2 ways in which a variable can be declared in the vbscript language?

564


how to increasing the numbers in a given text box please write a vb script

1698






What is the output of a + b in vbscript if a = 5 and b = 10?

2092


What are the uses of vb script?

585


Explain about filter expression?

563


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1243


what is used of Property........End Property loop ? how to write the script for it?

1684


What is the difference between vb debugger and the script debugger?

586


how to check whether link is disabled in QTP??

5629


Mention what is select case statement?

544


What are the rules to name variable in vbscript?

587


How to add actions in driver script to run those actions in QTP?

1516