Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Дума=");
- string duma = Console.ReadLine();
- Console.Write("Буква която да изтрия=");
- char bukva = char.Parse(Console.ReadLine());
- while(duma.Contains(bukva))
- { int i = duma.IndexOf(bukva);
- duma = duma.Remove(i, 1);
- }
- Console.WriteLine(duma);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement