program to generate following pattern for n lines:
1
3 5
7 9 11
#include<stdio.h>
#include<conio.h>
void
main()
{
int i,j,temp=1,n;
clrscr();
printf("\n enter the number of
lines");
scanf("\n %d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",temp);
temp=temp+2;
}
printf("\n");
}
getch();
}
/* output
enter the number of lines3
1
3 5
7 9 11 */