CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// created by Daniel Cooper
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
string name = Console.ReadLine();
char[] letters = new char[15] {'a','s','d','e','f','r','t','i','o','u','l','p','n','y','m'};
for(int i = 0; i < name.Length; i++) {
char c1 = name[i];
foreach(char c2 in letters) {
if(c1==c2 || c1==Char.ToUpper(c2)) {
name = name.Remove(i,1);
i=-1;
}
}
}
Console.Write(name);
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run