Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
References: <g7qesi$8nl$1@fred.mathworks.com> <5597641.1218596771361.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1218821440 11492 172.30.248.38 (15 Aug 2008 17:30:40 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 15 Aug 2008 17:30:40 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1132813
Xref: news.mathworks.com comp.soft-sys.matlab:485716


Angelina <datacare08@gmail.com> wrote in message
<5597641.1218596771361.JavaMail.jakarta@nitrogen.mathforum.org>...
> 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.