If else
Last updated
Last updated
bool no_idea;
if (no_idea) {
keep_learning();
} else {
make_design();
}int days_before_vacation;
if (days_before_vacation > 5) {
printf("days_before_vacation is more than 5\n");
}
else if (days_before_vacation > 3) {
printf("days_before_vacation is between 4 and 5\n");
}
else if (days_before_vacation > 1) {
printf("days_before_vacation is between 2 and 3\n");
}
else {
printf("days_before_vacation is 1 or less\n");
}