Ad
Code
Diff
  • package main
    
    import "fmt"
    
    func main() {
        age := 28 * 365 / 687
        fmt.Printf("My age on the surface of Mars is %d years old.\n", age)
    }
    • package main
    • import "fmt"
    • func main() {
    • age := 28 * 365 / 687
    • fmt.Print(fmt.Sprintf("My age on the surface of Mars is %d years old.", age))
    • fmt.Printf("My age on the surface of Mars is %d years old.\n", age)
    • }