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

Answer Posted / vani

dim a,b,sum,mul
a=cdbl(inputbox("enter a?"))
b=cdbl(inputbox("enter b?"))
sum=a+b
mul=a*b
msgbox sum
msgbox mul

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is select case statement?

728


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2053


who will create the object?

1905


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

1038


about vb scripting programs this type of all question& answers

1900


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2466


Explain about filter expression?

773


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1648


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1995


What is the technology used by vb script?

729


What if you do not specify anything when you call a procedure?

781


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2780


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

1835


What are the valid scopes of a variable in vbscript?

809


When to use function procedures and what are its characteristics?

794