Write a program to print these Floyd’s triangle
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,n=1,m;
clrscr();
scanf("%d",&m);
printf("\n\n\n");
for(a=1;a<=m;a++)
{
for(b=1;b<=a;b++)
printf("%d ",n++);
printf("\n");
}
getch();
}
#include<conio.h>
main()
{
int a,b,n=1,m;
clrscr();
scanf("%d",&m);
printf("\n\n\n");
for(a=1;a<=m;a++)
{
for(b=1;b<=a;b++)
printf("%d ",n++);
printf("\n");
}
getch();
}