Today's my birthday (really!) and sadly I've had to organise my own party. Well, now you know, couldn't you at least make the cake? Given an integer as input, write a full program to output a birthday cake with candles on. A piece of cake with one candle on is: And a piece of cake with three candles on is: I'm sure you can work it out from that However, for input , you must output the following: For input less than , you should output a candleless cake: Nothing is allowed to be output to STDERR.
Beta Decay
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Beta
Contact Beta, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack