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 |
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
How to throw an error in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
How will you get the exponent of the given number in vbscript?
What is the difference between Javascript & Vbscript?
What is vbscript procedures?
how to set one column as primary key in QTP and fetch values accordingly
What is vbscript language used for and which earlier language is it modeled upon?
Mention the environments where vbscript could be run?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
Find Out Length of an array without using Ubound?
after medical test,when will be the police verification