clc
clear
disp('Zhoria Renfus')


function [perimeter, area] = rectangle(length, width)

perimeter = 2*(length + width);
area = length * width;

end


length = 10;
width = 5;

[p, a] = rectangle(length, width);

disp('Perimeter:')
disp(p)

disp('Area:')
disp(a)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: