mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
212 B
Plaintext
19 lines
212 B
Plaintext
func returnFifteen() -> Int {
|
|
var y = 10
|
|
func new_name() {
|
|
if y > 50 {
|
|
print("bigger than 50")
|
|
} else {
|
|
print("less")
|
|
}
|
|
}
|
|
|
|
func add() {
|
|
y += 5
|
|
new_name()
|
|
}
|
|
add()
|
|
return y
|
|
}
|
|
|