function [a,c] = circleData(r)
% return the area and circumference for a circle of any radius
% usage: [a,c] = circleData(r) where r is the radius of the circle. note:
% vectors are allowed

% call functions to perform calculations
a = areaCalc(r);
c = circumCalc(r);

% nested function to handle the area calculation
function y = areaCalc(s)
y = pi*s.^2;
end

% nested function to handle the circumference calculation
function z = circumCalc(t)
z = 2*pi*t;
end

end