Guest User

Untitled

a guest
Apr 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.33 KB | None | 0 0
  1. var a, b, i, j :word;
  2.     c,y:string;
  3.     mas : array[1..100] of string;
  4. begin
  5.   i:=1;
  6.   assign(input, 'input.txt'); reset(input);
  7.   while (not eof) do begin
  8.   readln(c);
  9.   y:=copy(c,length(c)-2,length(c));
  10.   if ((y='ova')or(y='ov'))
  11.   then begin mas[i]:=c; inc(i);end;
  12.   end;
  13.   for j:= 1 to i do
  14.   writeln(mas[j])
  15. end.
Add Comment
Please, Sign In to add comment