Created
December 21, 2015 20:15
-
-
Save felipegenuino/4a2618f24b3c1667dad7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground Swift - Login e senha | |
import UIKit | |
var username = "[email protected]" | |
var password = "1234" | |
if username == "[email protected]" && password == "1234"{ | |
print("Acesso liberado") | |
} else if username != "[email protected]" && password != "1234" { | |
print("Login e senha errada") | |
} else if username != "[email protected]"{ | |
print("Usuário incorreto") | |
}else{ | |
print("Senha errada") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment