\* C Program to display the number pattern in diamund shape *\
# include < stdio.h >
int main( )
{
int i, j, r, k ;
printf(" Enter the Number of row : ") ;
scanf("%d ", & r) ;
printf("\n Pattern are : \n\n") ;
for ( i = 1 ; i < = r ; i++ )
{
for ( j = i ; j < = r ; j++ )
printf(" ") ;
for ( j = 1 ; j < = 2 * i - 1 ; j++ )
{
printf(" %d " , j) ;
}
printf(" \n ") ;
}
for ( i = r - 1 ; i > = 1 ; i-- )
{
for ( j = r ; j >= i ; j-- )
printf(" ") ;
for ( j = 1 ; j <= 2 * i - 1; j++ )
{
printf(" %d " , j) ;
}
printf(" \n ") ;
}
return ( 0 );
}