DEV Community

Abror_7
Abror_7

Posted on

Conditional Operator

Conditonal Operatoori - Shartli OPerator
Conditonal Operatorida 3 ta opertator ishlatilinadi
uchlik operatori ham deb nomlanadi.
Conditanal operatorida biz yozgan ko'd to'g'ri bo'lasa javobini chiqarib beradi. Agar noto'gi bo'lsa u ishlamaydi,javobini chiqarib bermaydi'

int main (){
  int a ,b ;
  cin >> a >> b;
  a < b ? cout  << a : cout << b;

 return 0;
}
Enter fullscreen mode Exit fullscreen mode

@dawrounn

Top comments (0)