Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace P3._CharactersInRange
- {
- internal class Program
- {
- static void CharacterInRange (char first, char second)
- {
- int startCharacter = Math.Min(first, second);
- int endCharacter = Math.Max(first, second);
- for (int i = startCharacter + 1; i < endCharacter; i++)
- {
- Console.Write($"{(char)i} ");
- }
- }
- static void Main(string[] args)
- {
- char one = char.Parse(Console.ReadLine());
- char two = char.Parse(Console.ReadLine());
- CharacterInRange(one,two);
- //char symbols=CharacterInRange(first, second);
- //Console.WriteLine(symbols);
- //Console.OutputEncoding = System.Text.Encoding.GetEncoding(28591);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement