Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
deletevowels
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static char[] DeleteVowels(char[] str, char [] vowels) { int i =0; int j =0; while (i<str.Length) { j=0; while(j<vowels.Length) { if(str[i]==vowels[j]) { str[i] = '*'; break; } j++; } i++; } return str; } public static void Main(string[] args) { char[] str = {'a','s','o','l','i','t','u','d','e'}; char[] vowels= {'a','e','i','o','u'}; char[] newstr = DeleteVowels(str,vowels); Console.WriteLine(newstr); } } }
run
|
edit
|
history
|
help
0
implement stack
ElevatorDesign_2020Dec11
loop exmple
prime number
BankAccount
bst - lot of methods
Jai
5
Vídeo01 - Main
line 1 syntax error