Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 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 Letter_nested_more_
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. char first = char.Parse(Console.ReadLine());
  14. char second = char.Parse(Console.ReadLine());
  15. char third = char.Parse(Console.ReadLine());
  16. int couter = 0;
  17.  
  18. for (int symbol1 = 97; symbol1 <=second; symbol1++)
  19. {
  20. if (symbol1 == third)
  21. {
  22. continue;
  23. }
  24. for (int symbol2 = 97; symbol2 <=second; symbol2++)
  25. {
  26. if (symbol2 == third)
  27. {
  28. continue;
  29. }
  30. for (int symbol3 = 97; symbol3 <= second; symbol3++)
  31. {
  32. if (symbol3 == third)
  33. {
  34. continue;
  35. }
  36. couter++;
  37. Console.Write($"{(char)symbol1}{(char)symbol2}{(char)symbol3} {couter} ");
  38.  
  39. }
  40. }
  41. }
  42.  
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement