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 |
When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?
3 Answers Logica CMG, McGraw Hill,
How to learn VB Script, Since iam working with QTP. So i need to learn VB script.
Mention the environments where vbscript could be run?
Explain the asc function?
How will you get the largest subscript of an array in vbscript?
Which function is used in the vbscript language to convert the specified expression into a date type value?
Explain the filter expression?
write a vbscript for traffic signal
How to assign a date value to a variable?
How to find arry size in qtp vb script
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
Mention how to assign a date value to a variable?