Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P14
- {
- class Program
- {
- static void Main(string[] args)
- {
- var start = Console.ReadLine()[0];
- var end = Console.ReadLine()[0];
- var useless = Console.ReadLine()[0];
- for (char i = start; i <= end; i++)
- {
- if (i != useless)
- {
- for (char j = start; j <= end; j++)
- {
- if (j != useless)
- {
- for (char k = start; k <= end; k++)
- {
- if (k != useless)
- {
- Console.WriteLine($"{i}{j}{k}");
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment