AntoSVK

Samohlasky

Oct 21st, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.43 KB | None | 0 0
  1. program abc;
  2. uses crt, dos;
  3.  
  4. const male_samohlasky : set of char = ['a','e','i','o','u'];
  5.  
  6. var a,e:string;
  7. i:byte;
  8.  
  9. begin
  10. clrscr;
  11. e:='';
  12. write('zadaj text: ');
  13. readln(a);
  14. for i := 1 to length(a) do
  15.         begin
  16.          if a[i] in male_samohlasky then e:=e+a[i]+',';
  17.         end;
  18. if e='' then writeln('Text neobsahuje ziadne samohlasky') else
  19. writeln('Samohlasky v zadanom texte su: ',e);
  20. repeat until keypressed;
  21.  
  22.  
  23. end.
Advertisement
Add Comment
Please, Sign In to add comment