+ 7
Can you have for loop inside nested if else statement in C or C++? eg:- if()...else if()...else if...else{ ..for() //statmt}
18 ответов
+ 6
i want to say...else{
for()
//statement
}
+ 6
right Agent
+ 6
but i am not getting output in this codeAgent https://code.sololearn.com/cAg902odYUOE/?ref=app
+ 6
its ok
+ 4
Yes you can Crystal!!
+ 4
Yes you still can Crystal!!
Here is an example:
https://code.sololearn.com/c6wfyM11nn84/?ref=app
+ 4
sorry i do not know C++ yet
+ 4
yes , it will folow the lastest if before it
+ 4
😒😒😒😒...meaning?
+ 4
yes you can
+ 3
yes
ex:
if (true) { for (...) {} }
else { for (...) {} }
+ 3
what???
+ 2
yes
+ 1
ya
+ 1
Здарова
+ 1
sure you can do as many u want
+ 1
Yes ofcourse u can do
+ 1
yes,there is for loop inside the if-elseif-else