Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CharactersInRange
- {
- class Program
- {
- static void Main(string[] args)
- {
- char top = char.Parse(Console.ReadLine());
- char bottom = char.Parse(Console.ReadLine());
- CharactersInBetween(top,bottom);
- Console.WriteLine();
- }
- public static void CharactersInBetween(char first, char second)
- {
- for (int i = first + 1; i < second; i++)
- {
- Console.Write((char)i + " ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment