write a vb script to display calculator using case statement?
Answer Posted / 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 View All Answers
Is vbscript a case-sensitive or case-insensitive?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
How to take whole text output from screen of Bitmap Application.
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Explain sga memory structures?
What is sql loader? Explain the files used by sql loader to load file?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Mention what is the technology used by vb script?
Explain the operator precedence in vb script?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
i need to sort the data using qtp script for this how i need to write a qtp script
What are the 2 ways to pass a value to the function?