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 |
i have to open a notepad having no. of words in dat file by recording in qtp and then find a particular word and display true or false
Explain the adodb.stream class?
Mention what is the technology used by vb script?
How to write VB Script for selecting a particular row in a WebTable?
Difference between dim,public and private variables in vb script?
how does vb script help in web page designing? explain with example.
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
What is the difference between function and procedure?
write a vb script to find the size of d drive?
Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.
Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.