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 |
Inorder to avoid Message box while writing script which alternative method can be used?
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,
Explain about the extension .hta?
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)
what is diff between static and dynaic arrys?
write a program to display the system specifications of client system with the help of vbScript.
i want to when we will write the scripts either after getting the build or after getting the SRS?
write a vb script to rename a folder from tree4 to tree7
sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap
can anybody tell vb script code for alphanumeric and special character .which is used in qtp the name text field.
What is the purpose of on error resume next statement?
How will you convert a string to upper case string using vbscript?