how to write basic programs in VB Script like addition,
multiplication?
Answer Posted / chandra
'addition
DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
DIM C
DIM D
C=A+B
MSGBOX C (here output is 1020)
C=INT (A)+INT (B)
MSGBOX C '(HERE OUTPUT IS 30)
D=A*B
MSGBOX D '(OUTPUT IS 200)
| Is This Answer Correct ? | 50 Yes | 29 No |
Post New Answer View All Answers
What is the difference between function and procedure?
What is the scope of a constant declared using public?
Explain about scrrun.dll?
Explain the constants in vbscript?
How you can call vbscript functions?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Explain about tristate constants?
In what way program "hello world" you can write in vbscript?
How to write VB script for login module?
There are 5 web pages.write a script to click the button on 4th web page.
When does ‘on click of button’ event gets triggered in the vbscript language?
How are arrays declared in the vbscript language?
Which date function is used in the vbscript language to find the difference between the 2 dates?
Which in-built function related to an array joins substrings into one string in the vbscript language?
What are string functions in vbscript?