using System; public class Test { public static void Main() { for (int a=0; a<10; ++a) for (int b=0, c; b<10; ++b) if ((c=15-a-b) > 0 && c < 10) Console.WriteLine(100*a + 10*b + c); } }
Standard input is empty
69 78 87 96 159 168 177 186 195 249 258 267 276 285 294 339 348 357 366 375 384 393 429 438 447 456 465 474 483 492 519 528 537 546 555 564 573 582 591 609 618 627 636 645 654 663 672 681 708 717 726 735 744 753 762 771 807 816 825 834 843 852 861 906 915 924 933 942 951