Sometimes we want our program to take decisions by reading external inputs. Without decisions, our program acts in same way for any input.
To make decisions we use if, else if, else control structures.
You can use following coding formats:
Following program reads an input from user & prints some details according to the value of that input.