LOVEGUN

Procedure alphanum

Oct 21st, 2020 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.27 KB | None | 0 0
  1. Procedure alphanum (Var t:tab;Var ch:String);
  2. Var
  3.   x,j: Integer;
  4.   L,i: Char;
  5. Begin
  6.   For i:='A' To 'Z' Do
  7.     t[i] := 0;
  8.   x := Length (ch);
  9.   For j:=1 To Length(ch) Do
  10.     Begin
  11.       L := ch[j];
  12.       If L In ['A'..'Z'] Then t[ L ] := t[ L ] +1;
  13.     End;
  14. End;
Add Comment
Please, Sign In to add comment