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

Both Static and dynamic arrays are handled by VB script. Is it true?

615


Explain the adodb.stream class?

549


what types of bugs will we find out in banking projects for automation testing?

1768


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1745


Is VB Script Case sensitive or Case insensitive?

640






In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2026


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1591


Why is error handling required?

578


Why is it recommended to close the database connection every time after the work is completed?

505


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

1693


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1791


Explain the arrays in vb script?

595


How will you reverse a string in vbscript?

622


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1812


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

546