101. Pattern
#include<stdio.h>
int
i,j,k,l,s,p;
void
main()
{
for(s=3,i=1;i<5;i++,s--)
{
for(p=s;p>0;p--)
{
printf(" ");
}
for(j=1,k=0,l=i;j<=i;j++,k++)
{
l=l+k;
printf("%d",l);
}
printf("\n");
}
}
Comments
Post a Comment