Wednesday, April 24, 2019

FIRST JAVASCRIPT PROGRAM EVEN OR ODD NUMBER

<html>
<title>even or odd</title>
<script>
var a=prompt("enter the value to check number is even or odd");
if(a%2==0)
{
document.write("the no is even");
}
else
{
document.write("the no is odd");
}
</script>


</html>

1 comment: