Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ''' 조건문 예제 egoing 2015 ''' # user input password input = 33 real_egoing = 11 #real_k8805 = "ab" if real_egoing = = input : print ( "Hello!, egoing" ) #elif real_k8805 == input: # print("Hello!, k8805") else : print ( "Who are you?" ) |
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 조건문 예제 # egoing # 2015 input = 33 real_egoing = 11 #real_k8805 = "ab" if real_egoing == input puts( "Hello!, egoing" ) #elsif real_k8805 == input # puts("Hello!, k8805") else puts( "Who are you?" ) end |