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 |
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
why do u choose to go for testing why cant for devoloping
What is difference between Active screen and movie screen recorder in QTP 9.2?
Is vbscript language a case-sensitive language and what does it mean?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
What is sql loader? Explain the files used by sql loader to load file?
What is the difference between Javascript & Vbscript?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
how to write basic programs in VB Script like addition, multiplication?
Explain what is loose binding? Why is it not a good practice to use it?
write a vb script to rename a folder from tree4 to tree7
There are 5 web pages.write a script to click the button on 4th web page.