Cody

Problem 44380. ASCII Birthday Cake

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

18.41% Correct | 81.59% Incorrect
Last solution submitted on Mar 15, 2019

Problem Comments

Solution Comments

Recent Solvers150

Suggested Problems

More from this Author57

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!