Respuesta :
if( caryear >= 2000 ):
print "probably has air bags.\n"
elif( caryear >= 1990 ):
print "probably has anti-lock brakes.\n"
elif( caryear >= 1970 ):
print "probably has seat belts.\n"
else:
print "probably has few safety features.\n"
print "probably has air bags.\n"
elif( caryear >= 1990 ):
print "probably has anti-lock brakes.\n"
elif( caryear >= 1970 ):
print "probably has seat belts.\n"
else:
print "probably has few safety features.\n"
Answer:
if (carYear <= 1969) {
System.out.println("Probably has few safety features.");
}
if (carYear >= 1970) {
System.out.println("Probably has seat belts.");
}
if (carYear >= 1990) {
System.out.println("Probably has anti-lock brakes.");
}
if (carYear >= 2000) {
System.out.println("Probably has air bags.");
}
Explanation: