Exemple d’utilisation de l’operator Modulo ‘%’ May 15, 2012 Author: user {filelink=4589} public class Modulo { public static void main(String[] args) { int i = 100; double d = 2; System.out.println("i mod 10 = " + i % 6); System.out.println("d mod 10 = " + d % 10); } } /* i mod 10 = 4 d mod 10 = 2.0 */ Categories: Uncategorized