+ 7

Can you have for loop inside nested if else statement in C or C++? eg:- if()...else if()...else if...else{ ..for() //statmt}

28th Jun 2018, 11:09 AM
Crystal!!!😎
Crystal!!!😎 - avatar
18 ответов
+ 6
i want to say...else{ for() //statement }
28th Jun 2018, 11:21 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 6
right Agent
28th Jun 2018, 11:54 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 6
but i am not getting output in this codeAgent https://code.sololearn.com/cAg902odYUOE/?ref=app
28th Jun 2018, 12:23 PM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 6
its ok
28th Jun 2018, 12:27 PM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 4
Yes you can Crystal!!
28th Jun 2018, 11:11 AM
Agent
Agent - avatar
+ 4
Yes you still can Crystal!! Here is an example: https://code.sololearn.com/c6wfyM11nn84/?ref=app
28th Jun 2018, 11:46 AM
Agent
Agent - avatar
+ 4
sorry i do not know C++ yet
28th Jun 2018, 12:26 PM
Agent
Agent - avatar
+ 4
yes , it will folow the lastest if before it
28th Jun 2018, 9:17 PM
Elias Dayoub
Elias Dayoub - avatar
+ 4
😒😒😒😒...meaning?
4th Jul 2018, 6:18 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 4
yes you can
7th Jul 2018, 11:04 AM
harsh singh
harsh singh - avatar
+ 3
yes ex: if (true) { for (...) {} } else { for (...) {} }
28th Jun 2018, 11:12 AM
aqua4
+ 3
what???
4th Jul 2018, 6:16 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 2
yes
28th Jun 2018, 10:22 PM
Tanner
+ 1
ya
28th Jun 2018, 12:18 PM
Mayank
Mayank - avatar
+ 1
Здарова
28th Jun 2018, 5:01 PM
Anrisssss
Anrisssss - avatar
+ 1
sure you can do as many u want
29th Jun 2018, 3:29 PM
Raouf Yasin
Raouf Yasin - avatar
+ 1
Yes ofcourse u can do
11th Jul 2018, 11:25 AM
Raouf Yasin
Raouf Yasin - avatar
+ 1
yes,there is for loop inside the if-elseif-else
12th Jul 2018, 7:00 PM
Rahul kumar