Skip to content

3. Star Power

In this problem, you’re asked to enter some APL code, including an APL symbol and the data (text or numbers) given to it. Your code will be tested by the APL Challenge system to check whether it gives the correct answer and uses the methods described below.

(Rho, a Greek letter) is called Repeat (Rho is like an r for repeat). It can take a number on the left and a text letter on the right. The numbers states how many times the letter on the right should be repeated. For example, 3 ⍴ '*' gives '***'


Write some APL code that gives a text of 7 stars ('*'). The result should look like *******.