Guest User

Untitled

a guest
Apr 19th, 2018
75
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
  8.   begin
  9.     readln(c);
  10.     if((pos('ova',c)=length(c)-2)or((pos('ov',c)=length(c)-1)))
  11.         then begin
  12.              mas[i]:=c; inc(i);
  13.         end;
  14.   end;
  15.   for j:= 1 to i do
  16.     writeln(mas[j])
  17. end.
Add Comment
Please, Sign In to add comment