Code:
#include<stdio.h>
void main(){
int n,i,j,f1=0,f2=1,f3=0,k,a[25];
printf("ENTER THE NUMBER\n");
scanf("%d",&n);
for(i=1;i<n;i++)
{
f1=f2;
f2=f3;
f3=f2+f1;
a[i]=f3;
for(j=1;j<=i;j++)
{
printf("%d\t",a[j]);
}
printf("\n");
}
}

Last edited by shabbir; 3Aug2012 at 18:51.. Reason: Code blocks