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 can constants be declared in the vbscript language?
Differentiate javascript and vbscript?
what is visual basic?
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
How to Convert Hex color code to color name in VB Script?
can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)
How to assign a numeric value to a variable?
plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this
What are the differences between sub procedures and function procedures?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
How to replace junk code recorded by QTP with a mall function.
What are the environments supported by vbscript language?