Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function myFunction() {
- var r = document.getElementById("poluprecnik").value
- var h = document.getElementById("visina").value
- r = r * r ;
- var p = 3.14 ;
- var V = r * p * h;
- document.getElementById("Rezultat") = "Zapremina valjka je" + V + "cm kubnih"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement