This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % d = 2; for i=d:m-1 y = mod(m,d); end if y == 0 disp('0'); else disp('1'); end...
View Full Document
This note was uploaded on 03/15/2011 for the course COM S 100 at Cornell University (Engineering School).