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...


write a vb script to display calculator using case statement?



write a vb script to display calculator using case statement?..

Answer / mudaseer

a=cint(inputbox("enter the value"))
b=cint(inputbox("enter the value"))
vchoice=inputbox("enter the value")
select case vchoice
case "+" msgbox a+b
case "-" msgbox a-b
case "*" msgbox a*b
case "/" msgbox a/b
case "\" msgbox a\b
case "mod" msgbox a mod b
case "&" msgbox a & b
case "^" msgbox a ^ b
case else msgbox "invalid"
end select

by mudaseer20@gmail.com

Is This Answer Correct ?    16 Yes 2 No

Post New Answer

More VB Script Interview Questions

write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail

2 Answers   Thomson Reuters,


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

0 Answers   Accenture,


How can the spaces from the string be removed?

0 Answers  


What purpose does ‘on error resume next’ serves?

0 Answers  


Is VB Script Case sensitive or Case insensitive?

0 Answers  


What variable can you use to share info across the whole application for one user?

2 Answers  


what is test scenario?

1 Answers  


What are lbound and ubound in the vbscript language?

0 Answers  


Why is error handling required?

0 Answers  


Explain How do you create a recordset object in vbscript?

0 Answers  


how to acces the remote mechine using vb cript(QTP)

0 Answers   TCS,


Mention what is the use of option explicit in vbscript?

0 Answers  


Categories