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...

Check whether given Number is Even or Odd?

Answer Posted / subhani

No = Inputbox("Enter a number to check whether it is Odd or Even")

If no mod 2 = 0 then
 msgbox no & " is even."
else
 msgbox no & " is odd."
end if

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about adodb.stream class?

1201


How to pass argument by reference to a function in vbscript?

1129


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

1213


What purpose does ‘on error resume next’ serves?

1145


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

1092


Explain about tristate constants?

1077


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2524


What is the difference between function and procedure?

1309


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

2317


Explain about scrrun.dll in vbscript?

1134


Mention what is byref and byval parameters in vbscript?

1050


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

2403


What if you do not specify anything when you call a procedure?

1199


how to set one column as primary key in QTP and fetch values accordingly

2361


Explain about the functionality of vb script?

1032