Program in C to print Reverse Floyds Triangle

Write a program in C to print Reverse Floyds Triangle

#include <stdio.h>
#include <conio.h>

void main()
{
int i,j,k;
i=7;
for(j=3;j>=0;j--)
{
for(k=0;k<=j;k++)
{
printf("%d ",(i+k));
}
i=i-j;
printf("\n");
}
getch();
}


Post a Comment