Skip to content

Instantly share code, notes, and snippets.

View HongzCloud's full-sized avatar
🥰

Hong HongzCloud

🥰
View GitHub Profile
import Foundation
//미션1. inch -> cm , 전달인자 레이블사용을 사용하여 inch -> m 도 가능
func convertToCM(from fromInches : Float,to fromInchesM : Float = 0) -> Float
{
var answer = fromInches*2.54
if fromInchesM == 0
{
print("\(answer)cm")
}