write a program for printing Floyd's triangle
# include<stdio.h> #include<conio.h> void main ( ) { int i, j,k=1; for ( i = 1; i < = 4 ; i ++) { for ( j =...
https://www.computersprofessor.com/2016/06/write-program-for-printing-floyds.html?m=0
# include<stdio.h>
#include<conio.h>
void main ( )
{
int i, j,k=1;
for ( i = 1; i < = 4 ; i ++)
{
for ( j =1; j < = i; j ++)
{
printf("%d\t",k);
k++;
}
printf (“\n”);
}
getch();
}
Out Put:
1
2 3
4 5 6
7 8 9 10