Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to print the triangle using c six

Critics Rating:

Users Rating:



      /* PROGRAM TO PRINT THE TRIANGLE */



#include <stdio.h>

main()

{

int i,j,k,n;

clrscr();

printf("ENTER THE NUMBER OF LINES ");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(k=0;k
    printf(" ");

for(j=n;j>=i;j--)

    printf("%d ",i);

printf("\n");

}

getch();

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.