| Subject: | Re: even or odd |
|---|---|
| From: | pete |
| Date: | Fri, 28 Mar 2008 07:11:31 -0500 |
| Newsgroups: | comp.lang.c |
melsayid wrote:
>
> The program always shows that the input is odd.
> scanf ("%d", &n);
> d=1;
That's because (d=1) is always odd.
--
pete
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: printf and cout, pete |
|---|---|
| Next by Date: | Re: Implementation-defined behaviour, Ioannis Vranos |
| Previous by Thread: | Convert native character string to ASCII array of integers, Tomás Ó hÉilidhe |
| Next by Thread: | Re: even or odd, pete |
| Indexes: | [Date] [Thread] [Top] [All Lists] |