24. Calculate Perimeter
Lesson 25 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to calculate the perimeter of a rectangle.
- Input: Length: 4, Width: 6
- Output: 20
Try it yourself
float calculateRectanglePerimeter(float length, float width) {
// Write code here
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction