borsha06

js_p15

Apr 26th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var a = parseInt(prompt("enter a",""));
  2. var b = 13
  3. if(a>b)
  4. {console.log(2*Math.abs(a-b));
  5. }
  6. else if(a<b)
  7. console.log(b-a);
Advertisement
Add Comment
Please, Sign In to add comment