Help with While loops

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:

  • Can you check if the debug area is visible ?
  • Press Command Shift Y to show the debug area.

Note: While pasting your code in the post, you can format the code by placing it between ``` (mark down formatting for code)