Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

input values to accept 2 numbers & print the product,
difference and sum using switch case

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are class variables?

1036


What are the 2 ways in which a variable can be declared in the vbscript language?

1064


What are subprocedures in vbscript?

1107


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

1011


What is the use of the formatdatetime function in the vbscript language?

1025


How strcomp function works?

1089


What methods are used to create text files and open text files in the vbscript language?

987


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

2049


How to assign a numeric value to a variable?

1126


What is select case statement?

1053


What are the advantages of vbscript?

1089


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

1005


How to take whole text output from screen of Bitmap Application.

2372


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2297


write a program to display configuration of a local system with the help of vb script.

2126