Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication11
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.ForegroundColor = ConsoleColor.Cyan;
- for (int i = 0; i < 50; i++)
- {
- int num = int.Parse(Console.ReadLine());
- int a = num % 10;
- int b = (num / 10) % 10;
- int c = num / 100;
- if ((a != b && a != c && b != c))
- Console.WriteLine(num);
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement