daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. var a, g, ag;
  12. alert ("Calculadora Alcool x Gasolina");
  13. a = Number(prompt("Insira o valor do Alcool"));
  14. g = Number(prompt("Insira o valor da Gasolina"));
  15. ag = a/g;
  16. if (ag <= 0.7){
  17.   alert("Abasteça com Alcool " + "(" + ag + ")");
  18.  
  19. }
  20. else if(ag >= 0.7){
  21.   alert ("Abasteça com gasolina" + "(" + ag + ")");
  22. }
  23. </script>
  24.  
  25.  
  26.  
  27. <script id="jsbin-source-javascript" type="text/javascript">var a, g, ag;
  28. alert ("Calculadora Alcool x Gasolina");
  29. a = Number(prompt("Insira o valor do Alcool"));
  30. g = Number(prompt("Insira o valor da Gasolina"));
  31. ag = a/g;
  32. if (ag <= 0.7){
  33.   alert("Abasteça com Alcool " + "(" + ag + ")");
  34.  
  35. }
  36. else if(ag >= 0.7){
  37.   alert ("Abasteça com gasolina" + "(" + ag + ")");
  38. }</script></body>
  39. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top