Task 5 of 10 · 0 solved · 10 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

4.1 Objects and fields — box perimeter

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in perimeter so that it returns the perimeter of the box — twice the sum of width and height.

For the box in main the program prints 14.

Your solution