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


input values to accept 2 numbers & print the product,
difference and sum using switch case



input values to accept 2 numbers & print the product, difference and sum using switch case..

Answer / testengineer

a= Inputbox ("Enter the value of a :: ")
b= Inputbox ("Enter the value of b :: ")
S= int(a)+int(b)
D= int(a)-int(b)
P= int(a)*int(b)
Operation= Inputbox ("1.Sum"&vbnewline& "2.Difference" &vbnewline& "3.Product","Operators")

Select Case Operation
Case 1
Msgbox "Sum = "& S
Case 2
Msgbox "Difference = "& D
Case 3
Msgbox "Product = "& P
Case Else
Msgbox "Invalid Selection"

End Select

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More VB Script Interview Questions

write a vbscript for finding the sum of the numbers from 1- 50

3 Answers  


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

0 Answers  


Explain about the functionality of vb script?

0 Answers  


How to assign a numeric value to a variable?

0 Answers  


What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

0 Answers  


what is the function to get the ascii value of the character?

6 Answers   Netxcell, Oracle,


How to write VB Script for selecting a particular row in a WebTable?

1 Answers   Patni,


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


How to check the particular window is exist or not with out using check points

2 Answers  


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

1 Answers   Citi Bank,


What is the difference between function and procedure?

0 Answers  


How can you fetch the value of a cookie?

0 Answers  


Categories