Re: Pascal to Java funzione odd
|
- Subject: Re: Pascal to Java funzione odd
- From: Andrea Francia <andrea.francia@gmx.ohohohioquestoèdatogliereohohoho.it>
- Data: Fri, 25 Jul 2008 12:31:46 +0200
- Newsgroups: it.comp.java
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 Francia
http://www.andreafrancia.it/