Pointers, Methods, and Interfaces·43 of 62
Define a Perimeter() int method on Rectangle that returns 2 * (Width + Height). main already reads the width and height and prints the result.
Perimeter() int
Rectangle
2 * (Width + Height)
main
Sign in to try this exercise.