Last active
February 28, 2022 22:23
-
-
Save samueltcsantos/3c8a5c7d39d9509abf44fab7fc52be5b to your computer and use it in GitHub Desktop.
Calculando o salario mensal em Go.
This file contains 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 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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out my page to see other examples Mais exemplos ...