Advertisement
ProToTN

Untitled

Mar 8th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.15 KB | None | 0 0
  1. j:=0;
  2. For i:=1 to N do
  3. Begin
  4.   If T2[i]=1 then
  5.   Begin
  6.     j:=j+1;
  7.     T3[j]:=T1[i];
  8.   End
  9. End;
  10. For i:=j+1 to N do
  11. Begin
  12.   T3[j]:=0;
  13. End;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement