Give positive integer N
print N rows
Sample input and output:
enter N
6
0
00
000
0000
00000
000000
Program:
#include<stdio.h>
int main()
{
int i,j,N;
printf("enter N\n");
scanf("%d",&N);
for(i=1;i<=N;i++)
{
for(j=1;j<=i;j++)
{
printf("0");
}
printf("\n");
}
return 0;
}