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)