Use if-else... if-else if there are multiple possible outputs and you're checking just one condition.
It doesn't matter if it's real life or programming, decisions are always made based on several factors. The if-else statement is a programming construct used in the C programming language to carry out activities based on a given condition. Code inside the if block is only executed if the supplied condition is true; else, block code from the otherwise block is run. It lays out the execution order for the statements. The if-else statement, commonly known as a control statement, determines how a program will run.
The necessity to make a decision to select one of the many possibilities accessible arises in a variety of real-life circumstances.
Learn more about if-else here:
https://brainly.com/question/12116732
#SPJ4