Number Patterns Example 28 – C Program
write a c program to display triangle number patterns example shows like below patterns.
1  3  5  7  9  11
3  5  7  9  11
5  7  9  11
7  9  11
9  11
11
#include <stdio.h>
#include<conio.h>
void main()
{
    int i, j;
    for(i=1; i<=11; i+=2)
    {    
     for(j=i; j<=11; j+=2)
      {
        printf("%d", j);        
      }    
        printf("\n");
    }
getch();
}The output of number patterns c program is :
1  3  5  7  9  11
3  5  7  9  11
5  7  9  11
7  9  11
9  11
11