5 h.) Program to print:-
/*program to print the
5
44
333
2222
11111*/
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j;
for(i=5;i>0;i--)
{
for(j=0;j<=5-i;j++)
{
printf("%d",i);
}
printf("\n");
}
return 0;
}
Output:-
5
44
333
2222
11111
***** Thank you ******
Comments
Post a Comment