Guest User

Untitled

a guest
Apr 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. uses crt;
  2.  
  3. const nmax = 10;
  4.  
  5. TYPE
  6.     vettore = array[1..nmax] of string;
  7.    
  8. function FindCharInVector(v1:vettore; c1:char) : integer;
  9.     var t,i:integer;
  10.     t := 0;
  11.     begin
  12.         for i := 1 to nmax do
  13.             if (v1[i][1] = c1) or (v1[i][length(v[i])] = c1) then inc(t);
  14.         FindCharInVector := t;
  15.     end;
Add Comment
Please, Sign In to add comment