program to display diamond pattern