Código central
/** * Número de narcisos no número natural de Mn * @param n * @param m */estático void getnums (int n, int m) {for (int i = m; i <= n; i ++) {int ge, shi, bai; duplo shui; bai = i/100; shi = i%100/10; ge = i%10; shui = math.pow (bai, 3)+math.pow (shi, 3)+math.pow (ge, 3); if (i == shui) System.out.println (i);}}