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 ConsoleApplication6
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.ForegroundColor = ConsoleColor.Yellow;
- Console.WriteLine("Введите текст:");
- string Text = Console.ReadLine();
- Console.WriteLine("Какой символ (один) заменить?");
- char replacement_it = char.Parse(Console.ReadLine());
- Console.WriteLine("На что его заменить?");
- string replacement_on_it = Console.ReadLine();
- string[] Words = Text.Split(replacement_it);
- string Text_new = string.Join(replacement_on_it, Words);
- Console.WriteLine(Text_new);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement