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

how to acces the remote mechine using vb cript(QTP)

1977


Mention what is the use of option explicit in vbscript?

931


Which data type/types are supported by vbscript language and what are their specialties?

993


How can you fetch the value of a cookie?

976


What is the extension of the vbscript file?

1002


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

3395


Does VB/Win make standalone .EXE files?

3359


what is the features of visual basic?

2054


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

2303


How regexp.execute method works?

1035


How to write functions and sub in vb script?

1064


When does ‘on click of button’ event gets triggered in the vbscript language?

957


Why is it recommended to close the database connection every time after the work is completed?

891


How should i Create Email invite with server-side Coding?

2074


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

963