Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. function [x ans] = killme(n)
  2. ans = 0;
  3. x = 0;
  4. while ans == 0
  5. x = x+1;
  6. ihatemylife = num2str(x*n);
  7. if length(strfind(ihatemylife,'0'))+length(strfind(ihatemylife,'1')) == length(ihatemylife)
  8. ans = x*n;
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement