#include
int main (void)
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
printf("%d",6-j);
printf("\n");
}
system("pause");
return 0;
}
5
54
543
5432
54321
Numeric Loop_1.2
#include
#include
int main (void)
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=6-i;j++)
printf("%d",6-j);
printf("\n");
}
getch();
return 0;
}
54321
5432
543
54
5
Numeric Loop_1.3
#include
int main (void)
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
printf("%d",6-i);
printf("\n");
}
system("pause");
return 0;
}
5
44
333
2222
11111
0 comments:
Post a Comment