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