Guest User

Untitled

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