From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: if else - odd -even in Matlab
Date: Fri, 15 Aug 2008 17:30:40 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <g84eg0$b74$>
References: <g7qesi$8nl$> <>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1218821440 11492 (15 Aug 2008 17:30:40 GMT)
NNTP-Posting-Date: Fri, 15 Aug 2008 17:30:40 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1132813
Xref: comp.soft-sys.matlab:485716

Angelina <> wrote in message
> Well, it's a very typical job to identify the difference
between the even & odd. Most of the times,I do get
confused.I hope if I could get an easy method for this task.


By definition every even number is divisible by 2.
Checking this is sufficient to identify even numbers.
Where's the problem?

It's so easy I actually forgot the most stupid part, when I
answered this topic: dividing the number by 2 prior to
verify it.