Its obvious tht we all face conditions in our life when we aren't sure about performing some task until we don't have sufficient data to make our decision. These situations are also encountered by programmers when their client isn't sure about the data and asks the programmer to make a program that reacts immediately when input is provided. This is when decision making plays its role. Under this section we are going to cover the following topics:
- if-else statements
- switch case statements
Knowledge of these topics will enable you to make programs that can take different actions depending upon the data provided by user, no matter whatsoever the data may be. So lets deal with our first topic i.e. if-else statements.
Written by T-REX