01/08/2021
Selection
Now suppose we have `10 to buy a pen. On visiting the stationery shop, there are a variety of pens priced at `10 each. Here, we have to decide which pen to buy. Similarly, when we use the direction services of a digital map, to reach from one place to
another, we notice that sometimes it shows more than one path like
the least crowded path, shortest distance path, etc. We decide
the path as per our priority. A decision involves selecting from
one of the two or more possible options. In programming, this
concept of decision making or selection is implemented with the
help of if..else statement.