Guest User

Untitled

a guest
Apr 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.28 KB | None | 0 0
  1. var i:word;
  2.     c: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. end.
Add Comment
Please, Sign In to add comment