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 |
how to add the shared repository file to the script file while running the script manuall
How to create a function in vbscript?
How are values assigned to the variables in the vbscript language?
When to use function procedures and what are its characteristics?
which is the best institute in banglaore for software testing?
i want to when we will write the scripts either after getting the build or after getting the SRS?
What are the advantages of vbscript?
how to display all the links in one page using vb script in qtp.
1 Answers DST Global Solutions,
a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program
How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?
how to validate the text in a web table
What are the different types of operators and their order of precedence?