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