• Now Online : 32
  • admin@codemyne.net

Introduction

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

The program shows the displaying of step series.

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

Comments/Suggestions are invited. Happy coding......!

Comments Post a Comment