Go fmt Package Printf()
%d
package main//from w ww .j av a 2 s . com import "fmt" func main(){ var num[100] int var temp,sum,avg int temp = 3 for i := 0; i < temp; i++ { fmt.Print("Enter the number : ") fmt.Scanln(&num[i]) sum += num[i] } avg = sum/temp fmt.Printf("The Average of entered %d number(s) is %d",temp,avg) }