Practice ยท 2 of 3
Rectangle Area
Given struct Rect { int w; int h; }; in scope, implement int area(struct Rect r) and int perimeter(struct Rect r).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Data Modeling