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
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
Write a Script for ATM in QTP
When are redim statement and preserve keyword used in the vbscript language?
What is the use of option explicit in vbscript?
What is the output of a + b in vbscript if a = 5 and b = 10?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Explain different types of segment?
How to pass argument by reference to a function in vbscript?
How to assign a numeric value to a variable?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
What is the purpose of the err object in the vbscript language?
How will you convert a string to upper case string using vbscript?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
Is vbscript language a case-sensitive language and what does it mean?