Please give me the programing for the following pattern
123454321
1234 4321
123 321
12 21
1 1
12 21
123 321
1234 4321
123454321
Anonymous:
c ++ or python ?
Answers
Answered by
1
12345
1234
123
12
1
#include <stdio.h>
int main()
{
int i, j;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Similar questions