Istirahat cepat dengan loop
// program to find first 5 multiples of 6
var i = 1
while (i<=10) {
print("6 * \(i) =",6 * i)
if i >= 5 {
break
}
i = i + 1
}
SAMER SAEID