Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to print the triangle using c seven

Critics Rating:

Users Rating:



      /* PROGRAM TO PRINT THE TRIANGLE */



#include <stdio.h>

main()

{

int i,j,n,l=10;

clrscr();

printf("ENTER THE NUMBER OF LINES ");

scanf("%d",&n);

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

{

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

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

printf("%3d",j);

printf("\n");

l++;

}

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.