Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Last active February 28, 2022 22:23
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/3c8a5c7d39d9509abf44fab7fc52be5b to your computer and use it in GitHub Desktop.
Save samueltcsantos/3c8a5c7d39d9509abf44fab7fc52be5b to your computer and use it in GitHub Desktop.
Calculando o salario mensal em Go.
package main
import (
"fmt"
)
func main() {
var valorHora, horasDeTrabalho, salario float32
fmt.Print("Valor da hora? ")
fmt.Scan(&valorHora)
fmt.Print("Horas de Trabalhos por Mês? ")
fmt.Scan(&horasDeTrabalho)
salario = valorHora * horasDeTrabalho
fmt.Println("Salario mensal é ", salario)
}
@samueltcsantos
Copy link
Author

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