<script>
let num = parseInt(prompt("Enter a number:"));
if (num % 2 === 0) {
console.log("The number is even.");
} else {
console.log("The number is odd.");
}
</script>
let num = parseInt(prompt("Enter a number:"));
if (num % 2 === 0) {
console.log("The number is even.");
} else {
console.log("The number is odd.");
}
</script>
0 Comments
I really appreciate for your words. Thank you very much for your comment.