Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

2819


Write a Script for ATM in QTP

3800


When are redim statement and preserve keyword used in the vbscript language?

986


What is the use of option explicit in vbscript?

948


What is the output of a + b in vbscript if a = 5 and b = 10?

3039


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2464


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

2369


Explain different types of segment?

965


How to pass argument by reference to a function in vbscript?

974


How to assign a numeric value to a variable?

1051


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2987


What is the purpose of the err object in the vbscript language?

1036


How will you convert a string to upper case string using vbscript?

931


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..

2398


Is vbscript language a case-sensitive language and what does it mean?

951