here is the output of program to print
11
112
1123
11235
112358


Code:
#include<stdio.h>
#include<conio.h>
 main(){
    int i,j,a=1,b=1,c;

    for(i=1;i<=5;i++)
    {
        printf("%d\t%d\t",a,b);
    for(j=3;j<=i+1;j++)
    {
        c=a+b;
        printf("%d\t",c);
        a=b;
        b=c;
    }
    a=1;b=1;
    printf("\n");
    }
}

Last edited by shabbir; 10Jan2013 at 12:01.. Reason: Code blocks