How do you write if else if else?

Use an if/else statement if the two conditions are mutually exclusive meaning if one condition is true the other condition must be false. if (testScore > 60) cout << “You pass” << endl; if (testScore > 90) cout << “You did great” << endl; For example, before noon (AM) and after noon (PM) are mutually exclusive.

Sizin İçin Seçtik  What is Dart language good for?

Leave a Reply

Your email address will not be published. Required fields are marked *