Sky full of stars - 02 - MATLAB Cody - MATLAB Central

Problem 45369. Sky full of stars - 02

Difficulty:Rate

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

50.98% Correct | 49.02% Incorrect
Last Solution submitted on Aug 22, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
18
8

Problem Recent Solvers25

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page