Operators
umida5

umida5 @umida5

About: ...

Location:
Uzbekistan, Tashkent
Joined:
Jan 13, 2024

Operators

Publish Date: Oct 18 '24
0 0

Bu operatorlar mantiqiy qiymatlar bilan ishlaydi (true yoki false):

  • && (AND - va)
  • || (OR - yoki)
  • ! (NOT - emas)
bool a = true;
bool b = false;
bool natija1 = a && b;  // false (ikkalasi ham true bo'lishi kerak)
bool natija2 = a || b;  // true (bittasi true bo'lsa ham yetarli)
bool natija3 = !a;      // false (a ning aksi)
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment