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 |
How to Import data from a file (file is on the desktop) to the data table
What is a difference between scripting language and programming language?
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next
How to capture a runtime error in vbscript?
write a Vb script to find a whther a selected drive exits.
Mention how to access array data?
How to get path of the file through scripting?
what is the difference between modular and data and keyword driven framework
VBscript for QTP,best tutorial?
how to acces the remote mechine using vb cript(QTP)
What is the purpose of regexp object in vbscript?
What are class variables?