3 2 1
2 1
1
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,x;
for(i=3;i>=1;i--)
{
x=i;
for(j=1;j<=i;j++)
{
printf("%d",x);
x--;
}
printf("\n");
}
getch();
return 0;
}
321
21
1
--------------------------------
Process exited after 0.8928 seconds with return value 0
Press any key to continue . . .
#include<stdio.h>
int main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
*
**
***
--------------------------------
Process exited after 0.8928 seconds with return value 0
Press any key to continue . . .