C Program to print Floyd’s triangle
#include
#include
void main()
{
int i,j,k=1,n;
clrscr();
printf("\nEnter the number of rows:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf(" %d",k);
k++;
}
printf("\n");
}
getch();
}
*************OUTPUT****************
Enter the number of rows:4
1
2 3
4 5 6
7 8 9 10
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Wednesday, December 31, 2008
C Program to print Floyd’s triangle
Posted by ars at 11:52 AM
Subscribe to:
Post Comments (Atom)
1 comments:
Post a Comment