Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Enter the first character here: ");
- string first = Console.ReadLine();
- char char1 = first[0];
- Console.Write("Enter the second character here: ");
- string second = Console.ReadLine();
- char char2 = second[0];
- for(int i = char1; i < char2; i++)
- {
- Console.Write((char)i + " ");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment