Created
November 20, 2021 13:10
-
-
Save zgunz42/6b7c6bcf46074d96466ad34222bf7b02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func mars_age(age int) int { | |
return age * 365/687 | |
} | |
func main() { | |
var age int | |
fmt.Scanln(&age) | |
mars := mars_age(age) | |
fmt.Println(mars) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment