//constant
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("Décision de test supplémentaire");
}
var todos = ["fonctionnement","Tâche","nettoyer"]
for todo in todos {
print(todo)
}
var dic = ["voiture":4,"自転voiture":2,"bicyclette":2]
print(dic["vélo"])
func areaOfTriangle(width:Int,height:Int){
print(width * height / 2)
}
areaOfTriangle(width: 3, height: 4)
Recommended Posts