Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as VB.Net by bjames ( 16 years ago )
Public Function CanUserDrink(ByVal Age As Integer, ByVal HasLicense As Boolean) As Boolean

    'If the user is of the legal drinking age

        'If the user has a drivers license

            'Return success to the caller

        'Otherwise the user does not have a drivers license

            'Return Failure to the caller

    'Otherwise the user is too young

        'Return Failure to the caller

         

End Function

 

Revise this Paste

Your Name: Code Language: