daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 51 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 num = Number (prompt("Digite um número"));
  12. var resto = num % 2;
  13. if (resto == 1){
  14.   alert("O número é ímpar!");
  15. }else{
  16.   alert("O número é par!");
  17. }
  18. </script>
  19.  
  20.  
  21.  
  22. <script id="jsbin-source-javascript" type="text/javascript">var num = Number (prompt("Digite um número"));
  23. var resto = num % 2;
  24. if (resto == 1){
  25.   alert("O número é ímpar!");
  26. }else{
  27.   alert("O número é par!");
  28. }</script></body>
  29. </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