Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Loops
- {
- class Program
- {
- static void Main(string[] args)
- {
- for (int a = 1; a <= 9; a++)
- {
- for (int b = 0; b <= 9; b++)
- {
- for (int c = 0; c <= 9; c++)
- {
- if (a == b && b == c)
- {
- int num = c + 10 * b + 100 * a;
- Console.WriteLine($"{num}");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement