Write a program in python to print :
54321
5432
543
54
5
Answers
Answered by
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
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
English,
5 months ago
Accountancy,
5 months ago
Chemistry,
9 months ago
Biology,
9 months ago
Social Sciences,
1 year ago
Art,
1 year ago