setu

Dog Age to Human Age

Sep 6th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dogAge = prompt("What is your dog age?");
  2. var humanAge = ((dogAge-2) * 4) + 21;
  3. alert("Your dog's equivalent human age is " + humanAge);
Advertisement
Add Comment
Please, Sign In to add comment