Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Ex14_MagicLetter
- {
- using System;
- public class Program
- {
- public static void Main(string[] args)
- {
- char first = char.Parse(Console.ReadLine());
- char second = char.Parse(Console.ReadLine());
- char skip = char.Parse(Console.ReadLine());
- for (char i = first; i <= second; i++)
- {
- for (char j = first; j <= second; j++)
- {
- for (char k = first; k <= second; k++)
- {
- if (i == skip || j == skip || k == skip)
- {
- continue;
- }
- else
- {
- Console.Write($"{i}{j}{k} ");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment