Write a program for printing the following number format
# include<stdio.h> #include<conio.h> void main ( ) { int i, j; for ( i = 1; i < = 4 ; i ++) { for ( j =1; j...
https://www.computersprofessor.com/2016/06/write-program-for-printing-following.html
# include<stdio.h>
#include<conio.h>
void main ( )
{
int i, j;
for ( i = 1; i < = 4 ; i ++)
{
for ( j =1; j < = i; j ++)
{
printf("%d\t",i);
}
printf (“\n”);
}
getch();
}
Out Put:
1
2 2
3 3 3
4 4 4 4