Program 143:
//Coming Soon...
Output:
#include<stdio.h>
main()
{
int i,j,k,rows,count,temp,start;
printf("Enter number of rows:\n");
scanf("%d",&rows);
count=1;
// using formula a+(n-1)*d
temp=1+(rows-1)*2;
for(i=1;i<=rows;i++)
{
start=1;
for(j=1;j<=count;j++)
{
printf(" ");
}
for(k=temp;k>=1;k--)
{
printf("%d",start);
start++;
}
count++;
temp-=2;
printf("\n");
}
}
Explanation://Coming Soon...
Output:


