- Back to Home »
- C program to output right triangle
Posted by : Unknown
#include <iostream>
int main ()
{
int i,j;
for (i = 5; i > 0; i--)
{
for (j = i; j > 0; j--)
printf ("*");
printf ("\n");
}
system("PAUSE");
return 0;
}