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
Difference between dim,public and private variables in vb script?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
Explain about constants in vb script?
How to delete a cookie using vbscript?
What is vbscript?
What are the rules to name variable in vbscript?
What is the extension of the vbscript file?
What are the data types supported by vbscript?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Which in-built function is used to format the number in the vbscript language?
how to operate webobjects in a webpage using getobject function and then using generic methods?
Which operator can be used to change the value of the operand or change the state of the condition?
How will you get the octal value of the given number in vbscript?
What are keywords in the vbscript language?