How many if statements can be allowed in nested if else statements? | SoloLearn: Learn to code for FREE!

+3

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

1/19/2019 11:09:07 AM

Sandeep Yadav

12 Answers

New Answer

+7

Over 9000

+5

As many as you want

+5

It's no limit dude you can use as many as you want

+3

Thanks anna

+2

As many as you can handle 😂😂😂

+2

It's your wish......

+1

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"

+1

As many as you need.

0

As many as you want

0

Its unlimited in c++

0

as per your requirements you can add it