elseif.bmx 276 B

1234567891011121314
  1. Rem
  2. ElseIf provides the ability to test and execute a section of code if the initial condition failed.
  3. End Rem
  4. age=Int( Input("How old Are You?") )
  5. If age<13
  6. Print "You are young"
  7. ElseIf age<20
  8. Print "You are a teen!"
  9. Else
  10. Print "You are neither young nor a teen"
  11. EndIf