Computer Science, asked by seemarehal, 10 months ago

4 4 4 4
3 3 3
2 2
1
write the program with explanation

Answers

Answered by vinayguptazah
0

Answer:

this sectioncontain programs to solve of different mathematics series using c programming.

please like me

Answered by AskewTronics
0

Python program :

Explanation:

size= int(input("Enter the size of the series: "))#Take the input for the size.

for x in range(size,0,-1):#First for loop which defined the size.

   for y in range(x):#Second for loop which defines the length of the loop.

       print(x,end=" ")

   print(" ")

Output :

  • If the user input as "4", then the output is the above series.

Code Explanation :

  • The above code is in python language, in which there first for loop defines the size of the loop and the second for loop is used to define the length of the loop.
  • The second for loop takes first for loop value for its last size.

Learn More :

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