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
What is Procedure or Subroutine in VB Script?
How to get the length of the string by making use of the string function?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
Anyone have qtp11.0 crack?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
Which function is used in the vbscript language to convert the specified expression into a date type value?
What are the special sub-types in vbscript?
Difference between dim,public and private variables in vb script?
Which operator can be used to check if two numbers are equal or not in vbscript?
Explain How do you create a recordset object in vbscript?
Why is error handling required?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
What are class properties?
Mention what is vbscript?
What are the advantages of vbscript?