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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

777


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

753


Explain about tristate constants?

768


How can you create an object in vbscript?

822


How will you compare two strings in vbscript?

804


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

829


Explain about tristate constants in vbscript?

821


What is the purpose of regexp object in vbscript?

758


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

2016


how to set one column as primary key in QTP and fetch values accordingly

2057


How will you reverse a string in vbscript?

833


Explain the tristate constants in vbscript?

767


What is Procedure or Subroutine in VB Script?

825


How will you get a subset of a array in vbscript?

755


How can you destroy an object in vbscript?

870