http://dzz.livejournal.com/ ([identity profile] dzz.livejournal.com) wrote in [personal profile] dzz 2007-06-21 02:58 pm (UTC)

Ну, это всё равно не дотягивает до алгоритма определения чётности, попавшегося мне на глаза в далёком детстве:

for (i=0, j=1; i<value; i++) j *= -1;
if (j>0) printf("Чётное"); else printf("Нечётное");

:)))

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting