% Example:  Areas n-gons inscribed and 
% circumscribed in the unit circle

n= 6;  % number of sides

disp('Compute areas of inscribed and circumscribed n-gons');
fprintf('\n n\tInner Area\tOuterArea\n');
innerA= (n/2)*sin(2*pi/n);
outerA= n*tan(pi/n);
fprintf('%d\t%.6f\t%.6f\n', n, innerA, outerA);
