+ 2
How to use '<=' and '>=' in cases?
can you help me, please?
7 Answers
+ 15
Did you mean something like this?
int x=5, y=9;
switch(x>=y){
case 0: cout<<"x is smaller" ;
break;
case 1: cout<<"x is larger or equal";
break;
}
+ 14
Haha no prob, Shamimi even sounds better! :D
+ 13
@Very Hard
her name is Shamima not Shamimi !
@Shamima please forgive @Very Hard typo because he has habit to break his keyboard with his head.đđđ
+ 10
@Shamima Yasmin
-_- Uh....Srry
So wow That you don't kick me off
@Agus Mei
Now I have no keyboard đ and my eyes went to red
+ 9
Idk maybe
switch(1){
case 1:{
if(5 <= 2)
cout << "How was this print out?!";
else if(5 >= 5)
cout << "Ahhhh It's possible to print out";
}
}
if you mean the else meaning
You can't do that to check statement like as that.
+ 9
@Shamimi Yasmin
Why I don't think like that!?
+ 3
yes, probably
thank you