#include
void main()
{
int i,j,spc,rows,k;
printf("Input number of rows : ");
scanf("%d",&rows);
spc=rows+4-1;
for(i=1;i<=rows;i++)
{
for(k=spc;k>=1;k--)
{
printf(" ");
}
for(j=1;j<=i;j++)
printf("%d ",i);
printf("\n");
spc--;
}
}
Answers
Answered by
0
Answer:
#include
void main()
{
int i,j,spc,rows,k;
printf("Input number of rows : ");
scanf("%d",&rows);
spc=rows+4-1;
for(i=1;i<=rows;i++)
{
for(k=spc;k>=1;k--)
{
printf(" ");
}
for(j=1;j<=i;j++)
printf("%d ",i);
printf("\n");
spc--;
}
}
Similar questions
Business Studies,
10 hours ago
Math,
10 hours ago
Math,
8 months ago
Political Science,
8 months ago
World Languages,
8 months ago