//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("Additional test decision");
}
var todos = ["running","Task","clean up"]
for todo in todos {
print(todo)
}
var dic = ["car":4,"自転car":2,"bike":2]
print(dic["bicycle"])
func areaOfTriangle(width:Int,height:Int){
print(width * height / 2)
}
areaOfTriangle(width: 3, height: 4)
Recommended Posts