fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. class Program {
  5. static void Main(string[] args) {
  6. for(int i = 10; i <= 999; i++) {
  7. if (i.ToString().Select(c=>c-'0').Sum() == 11) Console.WriteLine(i);
  8. }
  9. }
  10. }
Success #stdin #stdout 0.02s 17340KB
stdin
Standard input is empty
stdout
29
38
47
56
65
74
83
92
119
128
137
146
155
164
173
182
191
209
218
227
236
245
254
263
272
281
290
308
317
326
335
344
353
362
371
380
407
416
425
434
443
452
461
470
506
515
524
533
542
551
560
605
614
623
632
641
650
704
713
722
731
740
803
812
821
830
902
911
920