Docstoc

triangle

Document Sample
triangle Powered By Docstoc
					#include <stdio.h>



int main(int argc, char** argv)

{

       int i,b[15];

       printf("enter array values\n");

       for(i=0;i<15;i++)

       scanf("%d",&b[i]);

       for(i=0;i<7;i++)

       {

       printf("\t%d",b[i]);



       }

       printf("\n");

       printf("\t");

       for(i=6;i<11;i++)

{

       printf("\t%d",b[i] );

       }

       printf("\n");

       printf("\t\t");

       for(i=11;i<14;i++)

       {

       printf("\t%d",b[i]);

}

       printf("\n");
    printf("\t\t\t");

    for(i=14;i<15;i++)

    {

    printf("\t%d",b[i]);

    }



    return 0;

}

				
DOCUMENT INFO
Categories:
Tags:
Stats:
views:1
posted:10/27/2012
language:Unknown
pages:2