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?

Answers were Sorted based on User's Feedback



how to write basic programs in VB Script like addition, multiplication?..

Answer / vaibhav

function vaibhav x,y
dim x,
dim y,
dim z,
z=x*y
msgbox z

Is This Answer Correct ?    116 Yes 59 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / dev

1.addition
DIM A=10
DIM B=20
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 ?    84 Yes 54 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / 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

how to write basic programs in VB Script like addition, multiplication?..

Answer / rohit yadav

private sub command 1_click()
text3.text=val(text1.text)+val(text2.text)
end sub

Is This Answer Correct ?    26 Yes 10 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / ramesh

dim a,b,c,d
a=inputbox ("enter the value a: ")
b=inputbox ("enter the value b: ")
c=cint(a)+ cint (b)
d=a*b
msgbox c
msgbox d

Is This Answer Correct ?    13 Yes 3 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / ashok

DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
DIM C
DIM D
C=A+B
MSGBOX ("C is" &C)

C=INT (A)+INT (B)
MSGBOX ("C is" &C)

D=A*B
MSGBOX ("d is" &d)

Is This Answer Correct ?    16 Yes 11 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / chandan

'script for adding two numbers
option explicit
dim num1,num2,result
num1=200
num2=300
result=num1+num2
msgbox result

Is This Answer Correct ?    11 Yes 8 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / venkat

Dim a
Dim b
a=inputbox("enter a value")
b=inputbox("enter b value")
Dim c
c=int(a)+int(b)
Msgbox c

Is This Answer Correct ?    6 Yes 3 No

how to write basic programs in VB Script like addition, multiplication?..

Answer / 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

how to write basic programs in VB Script like addition, multiplication?..

Answer / pravati

Call sum(x,y)
Function sum(x,y)
x=cint(inputbox ("enter a no"))
y=cint(inputbox ("enter a no"))
z=inputbox("enter the value")

Select Case z
Case "+" msgbox x+y
Case "-" msgbox x-y
End Select
End Function

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More VB Script Interview Questions

If else for do while select in vb script?

0 Answers  


What is string concatenation function in VBScript?

2 Answers  


Which keyword is used to declare a variable in the vbscript language?

0 Answers  


How will you get the smallest subscript of an array in vbscript?

0 Answers  


How to delete a cookie using vbscript?

0 Answers  


Explain the difference between POST and GET Method.

1 Answers  


How can I get the value of an object property or variable in another frame?

1 Answers   Citi Bank,


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


Please Example programms on vbscript 1)writing functions and calling functions

2 Answers   CIL, TCS,


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


Explain about the extension .hta?

0 Answers  


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

0 Answers  


Categories