topical media & game development

talk show tell print

basic-javascript-appendix-2-ch02-q1.htm / htm



  <HTML>
  <BODY>
  
  <SCRIPT>
  
  var degCent = prompt("Enter the degrees in centigrade",0);
  var degFahren = 9 / 5 * degCent + 32;
  
  document.write(degCent + " degrees centigrade is " + degFahren + " degrees Fahrenheit");
  
  </SCRIPT>
  
  </BODY>
  </HTML>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.