5 d.) program to print this :

 

/*program to print the
1
23
456
78910
1112131415*/
#include<stdio.h>
#include<conio.h>
int main()
{
    int i,j,n=1;
    for(i=1;i<=5;i++)
    {
        for(j=1;j<=i;j++)
        {
            printf("%d",n);
            n=n+1;
        }
        printf("\n");
    }
    return 0;
}
Output :-
1 23 456 78910 1112131415
******* Thank you *******

Comments

Popular posts from this blog

18 Amazing programs in C.