write a vb script to display the number is odd or even and
whether it is divisible by 9 or not
Answer Posted / mudaseer
vnum=cint(inputbox("enter a number"))
if vnum=0 then
msgbox "invalid"
end if
if vnum mod 2=0 then
msgbox "even"
else msgbox "odd"
end if
if vnum mod 9=0 then
msgbox "num is divisible by 9"
else
msgbox "num is not divisible by 9"
end if
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
Which event is triggered when mouse focus comes out of an element in the vbscript language?
What are the rules to name variable in vbscript?
What is dictionary object in vbscript? Explain?
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
how to set one column as primary key in QTP and fetch values accordingly
Explain the string concatenation function in vbscript?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Mention the environments where vbscript could be run?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
How do i automate a website www.flyashx.com without having any test cases witin a week time.
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
Explain vbscript in detail?
How will you format a number in percetage format in vbscript?
What is the difference between function and procedure?