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
Explain about vb script?
How will you get the largest subscript of an array in vbscript?
hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz
Difference between dim,public and private variables in vb script?
How will you format a number in percetage format in vbscript?
how to increase the values in text box in a given text box increament by two values by clicking on button
How should i Create Email invite with server-side Coding?
Explain about tristate constants?
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
Explain the filter expression?
How to get the length of the string by making use of the string function?
What is select case statement?
How to access array data?
can anyone tell me the procedure of interview held in applabs
What is purpose of scripting.filesystemobject class in vbscript?