+ 1
nested if statemnet
what exactly is the difference between nested if and an and operator ? i can use multiple and operators then why nested if?
6 odpowiedzi
+ 3
yes only if
if(condition){
if(condition){
instruction;
}
}
+ 3
You are right
+ 2
i'm on c++ but i think you can get the answer by looking at this piece of code, anyway it is a very good question for me.
if(condition){
if(condition){
instruction;
}
instruction;
}
0
don't u think I can use and (&) operator instead of multiple if's
0
thanks😊
but I think and operator can handle only 2 conditions
if (cond1 and cond2)
{
statements
}
0
bro text me text me i want help
03035745273