Computer Science, asked by juliajackobs123, 11 months ago

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 ?
juliajackobs123: its java
NeverMind11: yup
Anonymous: Oh sorry
NeverMind11: no problem

Answers

Answered by NeverMind11
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