Advertisement
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 inputOne = char.Parse(Console.ReadLine());
- char inputTwo = char.Parse(Console.ReadLine());
- PrintTheCharsBetweenTwoChars(inputOne, inputTwo);
- }
- private static void PrintTheCharsBetweenTwoChars(char one, char two)
- {
- int nextChar = one + 1;
- for (char i = Convert.ToChar(nextChar); i < two; i++)
- {
- Console.Write(i + " ");
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement