Skip to content
loading...

re: Daily Challenge #138 - Do I get a Bonus? VIEW POST

FULL DISCUSSION
 

In Go.


import "fmt"

func finalSalary(salary int, bonus bool) string {
    if bonus {
        return fmt.Sprintf("\u00A3 %d", salary*10)
    }
    return fmt.Sprintf("\u00A3 %d", salary)
}
code of conduct - report abuse