// Compiler : Dev C++4.9.9.2
#include<stdio.h>
int main()
{
int i,j,r,k=1;
printf("Range : ");
scanf("%d",&r);
printf("\n\t\t\t: : : FLOYD's Triangle : : :\n\n");
for(i=1; i<=r; i++)
{
for(j=1; j<=i; j++, k++)
printf(" %d",k);
printf("\n");
}
getch();
return 0;
}
Post a Comment