Advertisement
teguh1807

function.js

Feb 9th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function jumlahVolumeDuaKubus (a, b) {
  2.     var total, volumeA, volumeB;
  3.  
  4.     volumeA = a * a * a;
  5.     volumeB = b * b * b;
  6.     total = volumeA + volumeB;
  7.  
  8.     return total;
  9. }
  10. console.log(jumlahVolumeDuaKubus (8, 3));
  11. console.log(jumlahVolumeDuaKubus (10, 5));
  12. alert(jumlahVolumeDuaKubus (10, 5));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement