fork download
  1. package main
  2. import "fmt"
  3.  
  4. func descreve(x, y int) string {
  5. return fmt.Sprintf("%d + %d = %d", x, y, x + y)
  6. }
  7.  
  8. func main(){
  9. fmt.Printf(descreve(1, 2))
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/466752/101
Success #stdin #stdout 0s 4384KB
stdin
Standard input is empty
stdout
1 + 2 = 3