checkpoint 1: Celsius to Fahrenheit

그루두·2024년 4월 9일
0

100 days of SwiftUI

목록 보기
2/108

100 days of swiftui: checkpoint 1
https://www.hackingwithswift.com/quick-start/beginners/checkpoint-1

celsius를 상수에 저장하고 이에 대응하는 fahrenheit 계산하고 두 값 출력하는 방법

import Cocoa

let celsius = 36.5
let fahrenheit = celsius * 9 / 5 + 32

print("celsius: ", celsius)
print("fahrenheit: ", fahrenheit)

코드 파일
https://github.com/soaringwave/Ios-studying/commit/c58b332ebcb0302e41188fd96ed81bf1d71a2554

profile
계속 해보자

0개의 댓글

관련 채용 정보