//Konstante
let letStr = "Hello, playground"
print(letStr)
//Variable
var str = "Hello, playground"
print(str)
for x in 1...9{
for y in 1...9{
print("\(x)*\(y)=" ,x*y)
}
}
var rank = 59;
if(rank < 60){
print("Zusätzliche Testentscheidung");
}
var todos = ["Laufen","Aufgabe","Aufräumen"]
for todo in todos {
print(todo)
}
var dic = ["Wagen":4,"自転Wagen":2,"Fahrrad":2]
print(dic["Fahrrad"])
func areaOfTriangle(width:Int,height:Int){
print(width * height / 2)
}
areaOfTriangle(width: 3, height: 4)
Recommended Posts