Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace strong_number
- {
- class Program
- {
- static void Main()
- {
- char first = GetInput_Char();
- char last = GetInput_Char();
- int StartIndex = 0;
- int EndIndex = 0;
- Console.WriteLine();
- // line all ascii chars
- char[] ASCII = new char[255];
- char[] Chars = new char[255];
- for (int i = 0; i < 255; i++)
- {
- ASCII[i] = (char)i;
- if (first == (char)i) { StartIndex = i; }
- if (last == (char)i) { EndIndex = i; }
- }
- for (int i = StartIndex + 1; i < EndIndex; i++)
- {
- Console.Write($"{ASCII[i]} ");
- }
- }
- static char GetInput_Char() { return Console.ReadLine()[0]; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment