Computer Science, asked by anindyaadhikari13, 1 month ago

Topic: Recursion.

Use recursion to display the pattern given above. No loops allowed.

See the picture for the pattern. ​

Attachments:

Answers

Answered by Oreki
34

\textbf{Algorithm}

  \textsf{$\boldsymbol{\cdot}$ Providing the initial values to the recursive method.}\\\textsf{$\boldsymbol{\cdot}$ Printing spaces and asterisks using the \texttt{\symbol{114}epeat()} method.}\\\textsf{$\boldsymbol{\cdot}$ Calling the method again leaving the constant value and decrementing the side.}\\\textsf{$\boldsymbol{\cdot}$ \symbol{82}epeating until the side reaches zero.}

Attachments:

anindyaadhikari13: Excellent!
Answered by sensanchita62
1

Answer:

huge\ mathfrak\blue{Algorithm</p><p></p><p>  \begin{gathered}\textsf{$\boldsymbol{\cdot}$ Providing the initial values to the recursive method.}\\\textsf{$\boldsymbol{\cdot}$ Printing spaces and asterisks using the \texttt{\symbol{114}epeat()} method.}\\\textsf{$\boldsymbol{\cdot}$ Calling the method again leaving the constant value and decrementing the side.}\\\textsf{$\boldsymbol{\cdot}$ \symbol{82}epeating until the side reaches zero.}\end{gathered} </p><p>⋅ Providing the initial values to the recursive method.</p><p>⋅ Printing spaces and asterisks using the \symbol114epeat() method.</p><p>⋅ Calling the method again leaving the constant value and decrementing the side.</p><p>⋅ \symbol82epeating until the side reaches zero.}

Attachments:
Similar questions