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 |
Why to use option explicit in vb script?
What is vbscript language used for and which earlier language is it modeled upon?
what is resorceallocation
How to write functional test cases for send button in gmail.
who will create the object?
write a program to display configuration of a local system with the help of vb script.
we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like )
when you use For Loop, While..do, do..while? at what situations which loop will use.
Differentiate javascript and vbscript?
How to remove the spaces in a string Ex: "this is apple"
Which keyword is used to declare a variable in the vbscript language?
How to find arry size in qtp vb script