Cody

Problem 45369. Sky full of stars - 02

draw an isosceles triangle with asterisks of size n. For example, for n=6

    '     *     '
    '    ***    '
    '   *****   '
    '  *******  '
    ' ********* '
    '***********'

There can be two types -- top(t) or bottom(b).

Previous problem

https://www.mathworks.com/matlabcentral/cody/problems/45368-sky-full-of-stars-01

Solution Stats

40.0% Correct | 60.0% Incorrect
Last Solution submitted on Apr 14, 2020

Problem Recent Solvers10

Suggested Problems

More from this Author145

Problem Tags