--Originally published at Ed_Alita
Did you mean this?
No!!!
Nesting is puting a lot of conditional in order to make a more complex decison. For example the joysticks of a Xbox 360 have this kind of thinking.
Lets see a example of a code to see it clear:
The nested of this conditional take the input and comparte it with a range of cases.
This kind of of coding make us a easy liofe because it make the code to has flow and make it simple to see it.
The Result of this code is the next one: