Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Celsius</title>
  6.  
  7. <script type="text/javascript">
  8.  
  9. var farenheit;
  10. var celsius;
  11. var s;
  12. for(i = 2; i<=12; i++){
  13. celsius = 10 * i;
  14. farenheit = 32 + (celsius * 9)/5;
  15. s = s + "C" + celsius;
  16. F = + farenheit + "\n";
  17. if(celsius==0){
  18. document.write("Punto congelacion del Agua");
  19. alerts;
  20. }
  21. if(celsius==100){
  22. document.write("Punto de ebullicion del Agua");
  23. alerts;
  24. }}
  25. </script>
  26.  
  27. </head>
  28. <body>
  29. <!--
  30. var farenheit,celsius,
  31. var s="";
  32. for(i=-2;i<=12:i++) {
  33. celsius=10*i;
  34. farenheit=32+(celsius*9)/5;
  35. s=s+"C= "+celsius+";
  36. F="+farenheit+"\n";
  37. if (celsius==0)
  38. s=s+"Punto congelaci´on del
  39. Agua\n";
  40. if (celsius==100) s=s+"Punto de ebullici´on del Agua\n"; alerts;)}
  41. -->
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement