Guest User

Untitled

a guest
Feb 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.27 KB | None | 0 0
  1. function countVowel(path: string): integer;
  2. var     f: file;
  3.         ch: char;
  4. begin
  5.     countVowel := 0;
  6.     assign(f, path);
  7.     reset(f);
  8.     while not eof(f) do
  9.     begin
  10.         read(f, ch);
  11.         if ch in ['a', 'e', 'o', 'u', 'i', 'y']
  12.             then countVowel := countVowel + 1;
  13.     end;
  14. end;
Add Comment
Please, Sign In to add comment