Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function jumlahVolumeDuaKubus (a, b) {
- var total, volumeA, volumeB;
- volumeA = a * a * a;
- volumeB = b * b * b;
- total = volumeA + volumeB;
- return total;
- }
- console.log(jumlahVolumeDuaKubus (8, 3));
- console.log(jumlahVolumeDuaKubus (10, 5));
- alert(jumlahVolumeDuaKubus (10, 5));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement