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

How to assign a date value to a variable?

589


What are the different types of operators and their order of precedence?

566


When to use function procedures and what are its characteristics?

548


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

572


Explain sga memory structures?

577






How can constants be declared in the vbscript language?

551


What is dictionary object in vbscript? Explain?

623


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

1749


What is the technology used by vb script?

539


Explain the extension .hta?

540


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1721


can anyone tell me the procedure of interview held in applabs

1749


What are the environments supported by vbscript language?

504


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?

2020


Explain the string concatenation function in vbscript?

536