Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created February 28, 2022 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/ca50b920b2da320150cd5bcd50064009 to your computer and use it in GitHub Desktop.
Save samueltcsantos/ca50b920b2da320150cd5bcd50064009 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
var metro, centimetro float32
fmt.Print("Digite o comprimento[m]: ")
fmt.Scan(&metro)
centimetro = metro * 100;
fmt.Println(centimetro, "cm")
}
@samueltcsantos
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment