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

This is good for any one

Is This Answer Correct ?    3 Yes 4 No

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

Answer / dipanjan

Dim a, b, c, d As Integer
a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
d = Int(a) + Int(b) + Int(c)
MsgBox (d)

for multiplication:

d = a * b * c
MsgBox (d)

Is This Answer Correct ?    6 Yes 8 No

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

Answer / jansheer

dim a
dim b
dim c
a=cintinputbox("enter first no")
b=cintinputbox("enter second no")
c=a+b
msgbox("sum of "&a&"and"&b&"is")

Is This Answer Correct ?    4 Yes 16 No

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

Answer / amar

addition
dim a
dim b
dim c
c=a+b

Is This Answer Correct ?    9 Yes 23 No

Post New Answer

More VB Script Interview Questions

Which loop is used in case of arrays in the vbscript language?

0 Answers  


write a vb script to create a folder?

3 Answers  


If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....

3 Answers  


Which operator can be used to check if two numbers are equal or not in vbscript?

0 Answers  


Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10

2 Answers  






How can you fetch the value of a cookie?

0 Answers  


What is the purpose of on error resume next statement?

0 Answers  


after medical test,when will be the police verification

0 Answers   IBM,


What is difference between Active screen and movie screen recorder in QTP 9.2?

1 Answers  


How to write functional test cases for send button in gmail.

2 Answers   Arctern,


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

0 Answers  


How to capture a runtime error in vbscript?

0 Answers  


Categories