.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Fondamenti di architettura e programmazione (http://www.dsy.it/forum/forumdisplay.php?forumid=234)
-- [JAVA][HELP] Operatore MOD (http://www.dsy.it/forum/showthread.php?threadid=15340)


Posted by Ikkarus on 21-11-2004 18:14:

kiarimento java

come si può codificare l'operazione MOD in java?
ikkarus


Posted by Lunik on 21-11-2004 18:15:

sempre x Info gen?
ricordo che c'è l'hosted forum....

__________________
Il DSY su Facebook!!!


Posted by Rocco.Li on 21-11-2004 18:25:

L'operatore %, esempio:

int x = 10;
int y = 3;

int mod = x % y;

la variabile mod nell'esempio alla fine vale 1, ovvero il resto della divisione.

__________________
Alcuni uomini vedono le cose come sono e dicono: << Perche' ? >>
Io sogno le cose come non sono mai state e dico: << Perche' No ? >>
George Barnard Shaw, Commediografo.

"non preoccuparti troppo, comunque vada la vita, non ne uscirai vivo !" - anonimo


Posted by Ikkarus on 22-11-2004 16:25:

grazie rocco!ikkarus


All times are GMT. The time now is 12:14.
Show all 4 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.