% my_area calculates the area of a circle, given the radius. % Programmer: Dick Furnstahl furnstahl.1@osu.edu % % Revision history: % 20-Mar-2005 -- original version for Physics 263 % % get the radius from the user using "input" radius = input('Enter the radius of a circle: '); % calculate the area (the ";" at the end suppresses the output) area = pi * radius^2; % output the result with the "disp" function (for "display") disp('The area is: ') disp(area)