For loop

import UIKit

//For 문
// 0...5
//0,1,2,3,4,5 - Range
// 만약 0...4 라고 하면 0 부터 4 인거임

// 0..<5 means is is less than 5

for index in 0..<5{
    print("this number is less than 5 \\(index)")

}

// if there isn't anything to add we use underbar (_)

// Using the array

var numArray: [Int] = [1,2,3,4,5,6,7,8,9]

for index1 in numArray where index1 < 7{
    print("Numbers: \\(index1)")
}

var randomInt: [Int] = [Int]()

// What is append in for loop?

for _ in 0..<25{
    // We declared 0 to 100 in the randomNumber
    let randomNumber = Int.random(in: 0...100)
    //Append is bringing the file from the randomNumber
    randomInt.append(randomNumber)
}

print(randomInt)