Conditions (if / switch)
Making decisions with if-else, else if, and switch.
Simple enough for a 5-year-old to understand
if / else
#include <iostream>using namespace std;int main() { int score = 75; if (score >= 50) { cout << "Passed" << endl; } else { cout << "Failed" << endl; } return 0;}