Spaces:
Build error
Build error
File size: 520 Bytes
969d7ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Level 3: Cakes, Cookies, and Pies in 2D Arrays
The owner of the Project Mercury Pastries Food Truck wants to find the total inventory for each dessert. They have the following values:
```
25 17 22
18 12 15
21 19 27
30 10 23
```
Each row represents a unique food truck in the business. Each column represents the number of cakes, cookies, and pies, respectively.
Write a method that totals each column and displays the total for each category:
```
Cakes: 94
Cookies: 58
Pies: 87
``` |