Jan 28, 2013

Displaying Floyds Triangle

/*Displaying Floyd,s Triangle*/

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,k;
for(k=1;k<=21;)
{
for(j=1;j<=i)
}
printf("%3d",k);
k++;
j++;
{
printf("\n");
i++;
}
getch();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts