markdown test
こんにちわ、muyuです
print("hello world") let x = 1 + 2 print(x) class Car { private(set) var restOfFuel: Float let name: String init(amountOfFuel: Float, name: String) { restOfFuel = amountOfFuel self.name = name } func useFuel(_ amountForUse: Float) { guard amountForUse <= restOfFuel else { print("lack of fuel!") return } self.restOfFuel -= amountForUse } }
Written with StackEdit.