Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is Procedure or Subroutine in VB Script?

1067


How to get the length of the string by making use of the string function?

1008


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)

1802


Anyone have qtp11.0 crack?

2775


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1836


Which function is used in the vbscript language to convert the specified expression into a date type value?

878


What are the special sub-types in vbscript?

986


Difference between dim,public and private variables in vb script?

901


Which operator can be used to check if two numbers are equal or not in vbscript?

1096


Explain How do you create a recordset object in vbscript?

962


Why is error handling required?

961


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?

3975


What are class properties?

1099


Mention what is vbscript?

1052


What are the advantages of vbscript?

1029