Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp3
- {
- class Var2
- {
- static public void Metod(char v1, char v2)
- {
- for (int i = v1; i<= v2;i++)
- {
- Console.Write(v1++ + " ");
- }
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- char v1;
- char v2;
- Console.Write("First symbol: ");
- v1 = Convert.ToChar(Console.ReadLine());
- Console.Write("Second symbol: ");
- v2 = Convert.ToChar(Console.ReadLine());
- Var2.Metod(v1, v2);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement