100. Pattern
#include<stdio.h>
int
i,j,k,l;
void
main()
{
for(i=1;i<6;i++)
{
if(i%2 != 0)
{
for(j=1,k=0,l=i;j<=i;j++,k++)
{
l=l+k;
printf("%d ",l);
}
printf("\n");
}
}
}
Comments
Post a Comment