Examples · learn/01-hello · 53 of 339
greet
A line starting with // is a comment.
tin run examples/learn/01-hello/greet.tin// A line starting with // is a comment. Tin ignores it.
fn main() {
let name = "Ada"
print("Hello, {name}!") // {name} is replaced by its value
print("{name} has {name.len} letters")
print("2 + 3 = {2 + 3}") // any expression works inside { }
}