Computer Science, asked by Aditipanday93, 7 months ago


Write a program in Java to display the following patterns:
ZYXWU
ZYXW
ZYX
ZY
Z​

Answers

Answered by Oreki
2

\textsf{\large \textbf{Algorithm}}

   \text{\textemdash \:\: Iterating from the pattern's length to 0.}\\\text{\textemdash \:\: Taking the appropriate substring using \textit{i}. }\\\text{\textemdash \:\: Displaying the substrings to get the pattern.}

Attachments:
Similar questions