Public Class Rect Public Static Double Perimeter Int Length Int Width Complete Method Q37172812

public class Rect { public static double perimeter(int length, int width) { // Complete this method }}


Answer


public class Rect { public static double perimeter(int length, int width) { return 2*(length + width); }}

Please let me know if you have any doubts Please upvote this answer. Thanks!!

Please let me know if you have any doubts Please upvote this answer. Thanks!!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.