import UIKit
var count=0
while count<5{
print("hi")
count=count+1
}
I have this code right here and when I run it nothing prints is there something I'm missing?
import UIKit
var count=0
while count<5{
print("hi")
count=count+1
}
I have this code right here and when I run it nothing prints is there something I'm missing?
Welcome to Swift Forums.
It does print hi 5 times.
If you are using Xcode:
Note: While pasting your code in the post, you can format the code by placing it between ``` (mark down formatting for code)