Programming in Swift: Fundamentals · Introduction to Functions | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals/lessons/35

Here’s the old code so you can follow along.

// -------------------------------------------

let passingGrade = 50

let chrisGrade = 49

let samGrade = 99

let chrisPassed = chrisGrade >= passingGrade

let samPassed = samGrade >= passingGrade

// -------------------------------------------

@optimetrics Thank you for sharing this - much appreciated!