18 lines
285 B
Plaintext
18 lines
285 B
Plaintext
let age = 14
|
|
|
|
if age >= 18 {
|
|
print("You are an adult")
|
|
} else {
|
|
print("You are a child")
|
|
}
|
|
|
|
let guess = 12
|
|
let secret = 14
|
|
|
|
if guess == secret {
|
|
print("You guessed the secret !")
|
|
} else if guess < secret {
|
|
print("You're too low")
|
|
} else {
|
|
print("You're too high")
|
|
} |