Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to print the triangle using c four

Critics Rating:

Users Rating:

       /* PROGRAM TO PRINT THE TRIANGLE */

#include <stdio.h>

main()

{

int i,j,n;

clrscr();

printf("ENTER HOW MANY ROWS\n");

scanf("%d",&n);

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

{

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

printf("%2d",j);

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.