Checkpoint 1

ยท

Convert temp from Celcius to Fahrenheit.

Here’s what I did:

import Cocoa

let celsiusTemp = 0
let fahrenheit = ((celsiusTemp * 9) / 5) + 32
print("The celcius value entered \(celsiusTemp) results in \(fahrenheit) degrees in fahrenheit")

Thoughts:
With something like this I wonder why the celsius needs to be a constant.

I know I can write a function that will take a parameter to make this a bit more useful but I guess its just about nailing these building blocks.

Onward.

Currently
Building

1 product