Computer Science, asked by lipumaity, 9 months ago

Write a program in python to print :
54321
5432
543
54
5​

Answers

Answered by reetarani874
4

Answer:

class pattern

{

public static void main (string arts[])

{

int n;

for(i=1;i<=n;i++)

{

for(j=n;j>=i;j--)

{

System.out.print();

} System.out.println(j+" ");

}

}

Hope it helps u....

Answered by felzzhmar
0

Answer:

#include<stdio.h>

int main()

{

   int i;

   for(i=5;i>=1;i--)

{

   printf("%d",i);

}

   printf("\n");

   for(i=5;i>=2;i--)

{

   printf("%d",i);

}

   printf("\n");

for(i=5;i>=3;i--)

{

   printf("%d",i);

}

   printf("\n");

for(i=5;i>=4;i--)

{

   printf("%d",i);

}

   printf("\n");

for(i=5;i>=5;i--)

{

   printf("%d",i);

}

   printf("\n");

   

   return 0;

}

Explanation:

Similar questions