Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Newbie- Division of a number by 100 (http://www.go4expert.com/forums/newbie-division-100-t2418/)

PORSCHE 2Jan2007 16:28

Newbie- Division of a number by 100
 
How could i find out if a number divides exactly by 100??
To be more clear i would like to find out if the quotient (the answer) is an integer

Thanks,

shabbir 2Jan2007 16:44

Re: Newbie- Division of a number by 100
 
if(n % 100 == 0)
{
//Number is divisble by 100
}


All times are GMT +5.5. The time now is 01:41.