Practice ยท 3 of 4
Inventory Value
Given struct Item { int qty; int unit_cost; }; in scope, implement long inventory_value(const struct Item *items, int n) summing qty*unit_cost over n items.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Mutating Operations