Day 16: Even Odd Number of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day16 of 100DaysCodingChallenge for
Even Odd Number taken input by the user.
Code :
let a = prompt("Enter a Number : "); if (a % 2 == 0) { console.log(a, "Number is Even."); } else { console.log(a, "Number is Odd."); }
Output :
Happy Coding:)
Comments
Post a Comment