Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Mathlink(n,x,y) {if(x == y){return 0;}else{if(x > y){return -Math.floor((x-y)/n);}else{return Math.floor((y-x)/n);}}}
- alert(Mathlink(2,12,24));
- // Combien de n pour aller de x à y ?
Add Comment
Please, Sign In to add comment