Advertisement
ProToTN

Untitled

Nov 10th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.30 KB | None | 0 0
  1. var ch,res:string;i:integer;
  2. Begin
  3.   Repeat
  4.     writeln('CH: ');
  5.     readln(ch);
  6.   until(ch<>'');
  7.   res:='';
  8.   For i:=1 to length(ch) do
  9.   Begin
  10.     ch[i]:=upcase(ch[i]);
  11.     if ch[i] in['A','E','I','O','U','Y'] then res:=res+ch[i];
  12.   End;
  13.     writeln('CH: ',ch);
  14.     writeln('Res: ',res);
  15. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement