Operators (if,else if,ternary operator,switch)
umida5
Posted on October 14, 2024
int score = 85;
if(score >= 90)
{
Console. WriteLine("A");
}
else if(score >= 80)
{
Console-WriteLine("B");
}
else if(score >= 70)
{
Console. WriteLine("C");
}
else
{
Console. WriteLine("F");
}
Natija: B chunki 85 90 dan kichik birinchi if da false beradi va else if ni sharti true bo'lib 85 80 katta bo'lgani uchun javob B.
💖 💪 🙅 🚩
umida5
Posted on October 14, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.