Search⌘ K
AI Features

Exercise on Control Flow

Explore Go's control flow by working through a practical exercise that involves distributing coins based on vowel counts in names. Learn how to use maps and conditional statements effectively in Go to manage data and apply limits on values.

We'll cover the following...

Question

You have 50 bitcoins to distribute to 10 users: Matthew, Sarah, Augustus, Heidi, Emilie, Peter, Giana, Adriano, Aaron, Elizabeth.

The coins ...