+ 3

How many if statements can be allowed in nested if else statements?

19th Jan 2019, 11:09 AM
Sandeep Yadav
Sandeep Yadav - avatar
12 Respuestas
+ 7
Over 9000
19th Jan 2019, 11:10 AM
Anna
Anna - avatar
+ 5
As many as you want
20th Jan 2019, 10:29 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 5
It's no limit dude you can use as many as you want
21st Jan 2019, 3:44 AM
AKS
AKS - avatar
+ 4
Here's a test using only if's (it bombs on indentation exceeded at a lower number, perhaps there's another way): str = "" ; indent=0 while True: str += indent * " " + "if True:" exec(str + "pass") indent += 1 str += "\n"
20th Jan 2019, 5:55 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Thanks anna
19th Jan 2019, 11:12 AM
Sandeep Yadav
Sandeep Yadav - avatar
+ 2
As many as you can handle 😂😂😂
21st Jan 2019, 7:59 AM
Dan Rhamba
Dan Rhamba - avatar
+ 2
It's your wish......
15th Feb 2019, 3:46 AM
Thanigai Velan
Thanigai Velan - avatar
+ 1
As many as you need.
21st Jan 2019, 8:00 AM
Asim Farheen
Asim Farheen - avatar
0
As many as you want
20th Jan 2019, 1:51 PM
sree harsha
sree harsha - avatar
0
Its unlimited in c++
4th Feb 2019, 10:35 AM
japhet Nse
japhet Nse - avatar
0
as per your requirements you can add it
24th Feb 2019, 1:47 AM
Shubham Vijaykumar Patil
Shubham Vijaykumar Patil - avatar