Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string with the following (no trailing spaces)

   6 6 6 6 6
   | | | | |
 __|_|_|_|_|__
{             }
{             }
{    CODY     }
{             }
{_____________}

This uses the string datatype, not a char array.

Solution Stats

1786 Solutions

229 Solvers

Last Solution submitted on May 07, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Group


Problem Recent Solvers229

Problem Tags

Community Treasure Hunt

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

Start Hunting!