Tin

Examples · 1 of 339

01-hello

The smallest Tin program.

examples/01-hello.tintin run examples/01-hello.tin
// The smallest Tin program. Run it with:  tin run examples/01-hello.tin

fn main() {
  let name = "Tin"
  print("Hello from {name}!")
  print("2 + 2 = {2 + 2}")
}
Hello from Tin!
2 + 2 = 4