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 Import data from a file (file is on the desktop) to the data table

1944


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2247


Which constant is used for print and display functions and works as same as pressing enter key?

944


What are class properties?

1100


What is the difference between function and procedure?

1138


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2914


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

909


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

2086


Both Static and dynamic arrays are handled by VB script. Is it true?

1034


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

2286


What is the use of the date function in the vbscript language?

950


Explain about constants in vb script?

969


Explain different types of segment?

965


Is vbscript a case-sensitive or case-insensitive?

1201


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1794