About using and implementing if statements, I was able to accomplish so, but in a slightly different manner and the program works as expected. The way I implemented if statement is in the following manner:
What I intend to ask is:
- Is this way correct (In terms of making a complex if statement)?
- Is it necessary to break down if statements in the form of nested if(s) instead of implementing complex conditions (In terms of programming habit)?
PS: I don’t have complain about code readability afaik what I did up there.
Any advice or improvement tips are appreciated