Social Icons

Pages

C Program to print the series


12345
2345
345
45
5

#include <stdio.h>
#include<conio.h>
void main()
{
    int i, j;
  clrscr();
    for(i=1;i<=5;i++)
    {
        for(j=i;j<=5;j++)
        {
            printf("%d",j);
        }
        printf("\n");
    }

    getch();
}

No comments:

Post a Comment