Re: Pascal to Java funzione odd
|
- Subject: Re: Pascal to Java funzione odd
- From: orsacchiotto.stupidotto
- Data: Fri, 25 Jul 2008 05:46:37 -0700 (PDT)
- Newsgroups: it.comp.java
On 25 Lug, 12:31, Andrea Francia
<
andrea.fran...@gmx.ohohohioquestoèdatogliereohohoho.it> wrote:
> LaGuNa wrote:
> > Non so come convertire in questo controllo Odd
>
> > if Odd(I) then
> > Inc(CodiceControllo, ValoreCarPosDispari(CodiceFiscale[I]))
> > else
> > Inc(CodiceControllo, ValoreCarPosPari(CodiceFiscale[I]))
> > end;
>
> > mi date una mano
>
> > Grazie by Enzo
> >www.scozzaro.it
> >www.thefox.it
>
> odd(i) restituisce true se il numero è dispari?
>
> void odd(int i) {
> return i%2 ==1;
>
> }
>
> --
> Andrea Franciahttp://www.andreafrancia.it/
mi togliesti le keyword dalle dita ;)