DEV Community

Mushtariy
Mushtariy

Posted on

0perators

a) Quyidagi kodning natijasini ayting.

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");
}
Enter fullscreen mode Exit fullscreen mode

javob - B

b) switch operatoridan foydalanib, 5 ga bo'linish natijasini chiqaruvchi kod yozing. Masalan, agar x = 5 bo'lsa, "x is divisible by 5" degan natija chiqsin.

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay