Program that display "leap year" if it is and "not leap year" if it is not
TAKE NOTE THIS IS DONE WITHOUT USING THE MODULO OPERATOR. Is this even possible? Thanks for all the help here is what i have so far.
1 2 3 4 5 6 7 8
|
if (year/4*4==year)
{
cout<<"It is a leap year!";
}
else
{
cout<<"It is not a leap year!";
}
|
that's the best i could come up with and is obviously wrong. could someone help me please? thank you again!
what does & 3 mean? and how do i use boolean function in turbo c++?
Topic archived. No new replies allowed.