Stan0033

Untitled

Jun 22nd, 2021
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. namespace strong_number
  5. {
  6. class Program
  7. {
  8. static void Main()
  9. {
  10.  
  11. char first = GetInput_Char();
  12. char last = GetInput_Char();
  13. int StartIndex = 0;
  14. int EndIndex = 0;
  15. Console.WriteLine();
  16. // line all ascii chars
  17. char[] ASCII = new char[255];
  18. char[] Chars = new char[255];
  19. for (int i = 0; i < 255; i++)
  20. {
  21. ASCII[i] = (char)i;
  22.  
  23.  
  24. if (first == (char)i) { StartIndex = i; }
  25. if (last == (char)i) { EndIndex = i; }
  26. }
  27.  
  28. for (int i = StartIndex + 1; i < EndIndex; i++)
  29. {
  30. Console.Write($"{ASCII[i]} ");
  31. }
  32.  
  33.  
  34. }
  35.  
  36. static char GetInput_Char() { return Console.ReadLine()[0]; }
  37.  
  38.  
  39.  
  40.  
  41.  
  42. }
  43. }
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment