+ 1
Like this: var a = prompt("enter the number"); var b = prompt("enter the number"); var c = a/b; document.write(c+" "); var d = a*b; document.write(d); And remember to put semicolons at the end of the lines ;) Edit: for a new line it's document.write(c+"<br />");
20th Apr 2018, 10:30 AM
Luigi
Luigi - avatar