Guest User

Untitled

a guest
Jan 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.36 KB | None | 0 0
  1. program two;
  2.  
  3. uses crt;
  4.  
  5. var
  6.     c: char;
  7.     vovel: set of char;
  8.     vovelCount: integer;
  9.  
  10. begin
  11.     vovel := ['a', 'e', 'i'];//тут перечислишь гласные
  12.     vovelCount := 0;
  13.     repeat
  14.         c := readkey();
  15.         if c in vovel then
  16.             inc(vovelCount);
  17.     until c <> '.';
  18.     writeln('Vovel count: ', vovelCount);
  19. end.
Add Comment
Please, Sign In to add comment