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 / alok

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 ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

996


What are the environments supported by vbscript language?

987


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1532


How will you reverse a string in vbscript?

1211


What are the naming conventions while declaring a variable in the vbscript language?

1082


What is the main difference between function and sub-procedure?

1104


What are keywords in the vbscript language?

1075


what do you mean .ota mobile format

2526


Explain about tristate constants in vbscript?

1126


how to check whether link is disabled in QTP??

6159


Explain the asc function?

988


How are arrays declared in the vbscript language?

1044


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3487


what is the difference between modular and data and keyword driven framework

2315


Which operator can be used to change the value of the operand or change the state of the condition?

1076