Computer Science, asked by itsneeraj, 11 months ago

• Write a program to print a pattern like :
4321
432
43
4​

Answers

Answered by satyamshawarn
2

please mark me as brainliest

Attachments:
Answered by AskewTronics
0

Python program :

Explanation:

s=4#Take a variable for the size of the series.

for i in range(1,s+1):#To define the range.

   for j in range(s,i-1,-1):#To define the length of the series.

       print(j,end="")#print the series.

   print("")#to change the line.

Output :

The above code will print the above defined series.

Code Explanation :

  • The above code is in python, which have the two for loop, one is used to define the size and the other is used for the length.
  • The starting point of second loop is the size of the series and the ending point the value of the first loop.

Learn More :

  • Python : https://brainly.in/question/14689905
Similar questions