sunnat2009

sunnat2009

Posted on March 9, 2024

C++

C++ dasturlash tilida "if" operatori, shartni tekshirish uchun ishlatiladi. "if" operatori, belgilangan shartning rost bo'lishini tekshiradi. Agar shart rost bo'lsa, u bajariladigan bo'lishi mumkin bo'lgan kodni bajaradi. Agar shart yolg'on bo'lsa, "if" bloki o'tkazilmaydi.

Oddiy sintaksisi quyidagicha:

Image description

Bu kodda, "b" ning qiymatiga qarab uchta turli xolatni tekshiradi: agar "b" 10 dan kichik bo'lsa, ikkinchi blokni bajaradi; agar "b" 20 dan kichik, lekin 10 dan katta bo'lsa, uchinchi blokni bajaradi; aks holda, else blokni bajaradi.

💖 💪 🙅 🚩
sunnat2009
sunnat2009

Posted on March 9, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

C++
beginners C++

March 9, 2024

Markdown as Fast as Possible
beginners Markdown as Fast as Possible

January 31, 2024

Learning DSA after 4 years of experience
beginners Learning DSA after 4 years of experience

January 17, 2024

Understanding CORS
beginners Understanding CORS

January 3, 2024