Advertisement
tr00per92

08-cylinderVol

Jul 15th, 2014
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function calcCylinderVol() {
  2.     return Math.PI * arguments[0] * arguments[0] * arguments[1];
  3. }
  4. console.log(calcCylinderVol(2, 4).toFixed(3));
  5. console.log(calcCylinderVol(5, 8).toFixed(3));
  6. console.log(calcCylinderVol(12, 3).toFixed(3));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement