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 Letter_nested_more_
- {
- class Program
- {
- static void Main(string[] args)
- {
- char first = char.Parse(Console.ReadLine());
- char second = char.Parse(Console.ReadLine());
- char third = char.Parse(Console.ReadLine());
- int couter = 0;
- for (int symbol1 = 97; symbol1 <=second; symbol1++)
- {
- if (symbol1 == third)
- {
- continue;
- }
- for (int symbol2 = 97; symbol2 <=second; symbol2++)
- {
- if (symbol2 == third)
- {
- continue;
- }
- for (int symbol3 = 97; symbol3 <= second; symbol3++)
- {
- if (symbol3 == third)
- {
- continue;
- }
- couter++;
- Console.Write($"{(char)symbol1}{(char)symbol2}{(char)symbol3} {couter} ");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement