Advertisement
AvengersAssemble

Untitled

Sep 2nd, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication11
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.ForegroundColor = ConsoleColor.Cyan;
  14.             for (int i = 0; i < 50; i++)
  15.             {
  16.                 int num = int.Parse(Console.ReadLine());
  17.                 int a = num % 10;
  18.                 int b = (num / 10) % 10;
  19.                 int c = num / 100;
  20.                 if ((a != b && a != c && b != c))
  21.                     Console.WriteLine(num);
  22.                 Console.WriteLine();
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement