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 |
write a vbscript for finding the sum of the numbers from 1- 50
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Explain about the functionality of vb script?
How to assign a numeric value to a variable?
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?
what is the function to get the ascii value of the character?
How to write VB Script for selecting a particular row in a WebTable?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
How to check the particular window is exist or not with out using check points
How can I get the value of an object property or variable in another frame?
What is the difference between function and procedure?
How can you fetch the value of a cookie?