DEV Community

fazliddin
fazliddin

Posted on

Operators

a)
`
int x = 10; //b degan o'zgaruvchi yaratamiz va 10-ga tenglaymiz

if(x < 5) //agar x 5-dan kichik bo'lsa, pastdagi text chiqadi
{
Console.WriteLine("Less than 5");
}
else if(x == 10) //agar x 10-ga teng bo'lsa, pastdagi text, lekn keyingi else if lar ishlamaydi
{
Console.WriteLine("Equal to 10");
}
else //agar hech qaysi shart kelmasa, pastdagi text chiqadi
{
Console.WriteLine("Greater than 5");
}
`

b)
shart ? true_holat : false_holat;

c)"Wednesday"

Top comments (1)

Collapse
 
rossangus profile image
Ross Angus

dev.to supports syntax highlighting in markdown which is ideal for these kinds of code blocks. It's really cool!