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

What variable can you use to share info across the whole application for one user?

2 Answers  


What are the advantages of vbscript?

0 Answers  


how to automatically update the sql server2005 database records when insert in vb6?

0 Answers  


How are values assigned to the variables in the vbscript language?

0 Answers  


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

0 Answers  


How to create a function in vbscript?

0 Answers  


write a vb script to display calculator using case statement?

1 Answers  


Mention what is variant 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 to generate 3 digit random number?

3 Answers   IBM, Virtusa,


Explain about adodb.stream class?

0 Answers  


What is event handling in vbscript?

0 Answers  


Categories