Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace alkarakterlanc
- {
- class Program
- {
- static void Main(string[] args)
- {
- string sz1, AlSz;
- int poz, hossz;
- Console.Write("Írd be a stringet: ");
- sz1 = Console.ReadLine();
- Console.Write("Honnan: ");
- poz = int.Parse(Console.ReadLine());
- Console.Write("Hosszusagban: ");
- hossz = int.Parse(Console.ReadLine());
- AlSz = sz1.Substring(poz, hossz);
- Console.WriteLine("Az alsztring : " + AlSz);
- Console.WriteLine("Kólity Kristóf");
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement