<script> var base = prompt("enter base : ") var height = prompt("enter height : ") var area = (base * height )/2; document.write("area = " + area);// input: 10,5// output: 25 </script>
No comments