Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
private static int findVowel(string str) { int count = 0; for (int i = 0; i < str.Length - 1; i++) { switch (str[i]) { case 'a': count++; break; case 'A': count++; break; case 'e': count++; break; case 'E': count++; break; case 'i': count++; break; case 'I': count++; break; case 'o': count++; break; case 'O': count++; break; case 'u': count++; break; case 'U': count++; break; } } return count; }
-Somu
Regards, Murugavel S murugavel.sadagopan@gmail.com http://murugavelmsc.blogspot.in/
Login to post response