Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Vowel
//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 void Main(string[] args) { string word = "cello,guitar,violin,double bass"; string[] instruments =word.Split(','); string vow= "a,e,i,o,u"; string[] vowels= vow.Split(','); for(int i= 0 ;i<instruments.Length;i++) { // char[] instrum =instruments[i].ToCharArray(); string instrumnt =instruments[i]; for (int j= 0;j<vowels.Length;j++) { instrumnt =instrumnt.Replace(vowels[j]," "); } Console.WriteLine(instrumnt); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Bubble Sort
Messages
loop exmple
Get direct link from onedrive.com
First pr
more or less
ö1
Bb
Linked List with basic functions.
ok
stackse - search stackoverflow differently
Please log in to post a comment.