DEV Community

thequvonc
thequvonc

Posted on

if - agar

if buning aniq manosi bu ingliz tilidan olingan bolib agar degan manoni anglatadi

#include <iostream>
using namespace std;
int main() {
int  n;
cin >> n;
  if (n == 0){

  cout << "bu zero!" ;

  }

Enter fullscreen mode Exit fullscreen mode

bunda if buyruq manosida keladi masalan:
buyerda deyapti agar n 0 ga teng bolsa console ga bu zero yani bu nol degan sozni chiqardegan buyruq yozilyapti

lekin bitta muammo bor if faqat 1 yani togri ni qabul qiladi agar if ni yozib uning shartiga mos bolmagan natija chiqadigan bolda xech narsa chiqmaydi console da!

@dawroun

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

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

Okay