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

wht must be the interview question on corinthian information technology solutions incorporated.

2194


Compare java script and vb script?

601


Explain the asc function?

512


When to use function procedures and what are its characteristics?

560


Which in-built function related to an array joins substrings into one string in the vbscript language?

522






Why is error handling required?

581


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

1592


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1557


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

1562


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1761


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

639


How do you declare a variable in vbscript?

633


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

540


Explain the scope of the variables using dim, public, and private keywords respectively.

726


Explain the arrays in vb script?

601