8 kyu
link to kata
my solution
Use variables to find the sum of the goals Messi scored in 3 competitions
Messi goal scoring statistics:
| Competition | Goals |
|---|---|
| La Liga | 43 |
| Champions League | 10 |
| Copa del Rey | 5 |
- Create these three variables and store the appropriate values using the table above:
laLigaGoalschampionsLeagueGoalscopaDelReyGoals
- Create a fourth variable named
totalGoalsthat stores the sum of all of Messi's goals for this year.