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

create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2694


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2556


write a program to display configuration of a local system with the help of vb script.

2169


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

5264


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

2087


How will you get a subset of a array in vbscript?

1057


Explain the scope of the variables using dim, public, and private keywords respectively.

1198


Explain about vb script?

1273


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

2389


What's the difference between vbscript and vb.net?

1167


What purpose does ‘on error resume next’ serves?

1145


what is diff between static and dynaic arrys?

2212


How will you get a random number between 0 and 1 in vbscript?

1384


What is the purpose of the err object in the vbscript language?

1161


about vb scripting programs this type of all question& answers

2179