6,11,21,36,56,...
Code:
a = 1;
b = 5
for (i=1; i<=n; i++)
{
printf("%d ",a+b);
b = b+5;
}
b = 5
for (i=1; i<=n; i++)
{
printf("%d ",a+b);
b = b+5;
}
More Pattern Programs:
Best gifts for Christmas Day | Greeting cards for Christmas Day | Gift your children a new gift on Christmas day This Christmas d...