For Advertisements on this blog Contact Us at developgram@gmail.com or +91-9923438816

Simple Programming Tutorials For Beginners

Tuesday, April 18, 2017

Odd or Even

<html>
<body>
  <script>
    var num = parseInt(prompt("Enter an integer"));

    if (num % 2 == 0)
      document.write(num + " is even number");
    else
      document.write(num + " is odd number");
  </script>
</body>
</html>



No comments:

Post a Comment

SEARCH THIS BLOG