using System; public class Piege { public static void Main() { try { for(int n = 7; n <= 1000; n += 7) { string s = n.ToString(); int sum = 0; for(int i = 0; i < s.Length; i++) sum += s[i] - '0'; if(sum == 11) Console.Out.WriteLine(n); } } catch (Exception e) { Console.Out.WriteLine("Erreur !"); } } // main() } // class Piege