Swift - Loops
What will be the output of this Swift code?
var i = 1
while i < 4 {
print(i)
i += 1
}var i = 1
while i < 4 {
print(i)
i += 1
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions