public class Piege { public static void main(String[] args) { try { for(int n = 7; n <= 1000; n += 7) { String s = String.valueOf(n); int sum = 0; for(int i = 0; i < s.length(); i++) sum += s.charAt(i) - '0'; if(sum == 11) System.out.println(n); } } catch (Exception e) { System.out.println("Erreur !"); } } // main() } // class Piege