Advertisement
mundoss2

Untitled

Jun 21st, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.39 KB | None | 0 0
  1. var
  2.         i,z,n,t,diem:integer;
  3.         A,B:array[1..100] of char;
  4. begin
  5.         readln(n);
  6.         for i :=1 to n do
  7.                 read(A[i]);
  8.                 readln();
  9.        diem:=0;
  10.         for t:=1 to n do
  11.                 read(B[t]);
  12.         for z:=1 to n do
  13.                 if (A[z]<>'.') then
  14.                    if A[z]<>B[z] then diem:=diem+1;
  15.         writeln(diem);
  16.         readln
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement