input values to accept 2 numbers & print the product,
difference and sum using switch case
Answer Posted / 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 View All Answers
What is the event handling in vbscript?
How do you declare a variable in vbscript?
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.
How will you get the smallest subscript of an array in vbscript?
How to create a cookie using vbscript?
How to Enter Values on the Command promt using VB script
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
How to capture a runtime error in vbscript?
How will you check that a variable is an array in vbscript?
How will you compare two strings in vbscript?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
What is the use of option explicit in vbscript?
what do you mean .ota mobile format
What are subprocedures in vbscript?