C program to display number pattern

 C program to display number pattern


 /******************************************************

 C program to display number pattern

 ***********************************************/

#include<stdio.h>

#include<conio.h>

void main()

{

    int i,j;

   // clrscr();

   printf("The number pattern is\n");

    for(i=1;i<=5;i++)

    {

        for(j=1;j<=i;j++)

        {

            printf("\t%d",j);

            

        }

        printf("\n");

    }

    printf("End of program");

}


The number pattern is

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

End of program


टिप्पणी पोस्ट करा

0 टिप्पण्या