Advertisement
NadyaMisheva

Untitled

Feb 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. string str = Console.ReadLine();
  8. int count = 0;
  9. for(int i = 0; i < str.Length; i++)
  10. {
  11. if(str[i] == 'a' || str[i] == 'e' || str[i] == 'o' || str[i] == 'u' || str[i] == 'i')
  12. {
  13. count++;
  14. }
  15. }
  16. Console.WriteLine("glasni : {0} times", count);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement