You want to print "Adult" if age is 18 or more, "Minor" if less than 18, and "Invalid" if age is negative. Which code correctly uses if-else to do this?
hard📝 Application Q8 of 15
PHP - Conditional Statements
You want to print "Adult" if age is 18 or more, "Minor" if less than 18, and "Invalid" if age is negative. Which code correctly uses if-else to do this?