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

Answer Posted / ramesh

dim a,b,c,d
a=inputbox ("enter the value a: ")
b=inputbox ("enter the value b: ")
c=cint(a)+ cint (b)
d=a*b
msgbox c
msgbox d

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about arrays in vb script?

602


What is the difference between vbscript and vba?

598


How can you create an object in vbscript?

612


Which function is used in the vbscript language to convert the specified expression into a date type value?

520


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2391






What is the purpose of drive object of scripting.filesystemobject class in vbscript?

604


Explain what is loose binding? Why is it not a good practice to use it?

577


What are the disadvantages of vbscript?

652


how does vb script help in web page designing? explain with example.

1584


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1430


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1846


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1800


Which operator can be used to change the value of the operand or change the state of the condition?

573


How to get the length of the string by making use of the string function?

560


What are the environments supported by vbscript language?

504