gistlib
main.mfunction area = cylinderArea(radius, height) % Calculate the area of a cylinder topBottom = 2 * pi * radius^2; side = 2 * pi * radius * height; area = topBottom + side; end 194 chars8 lines
function area = cylinderArea(radius, height) % Calculate the area of a cylinder topBottom = 2 * pi * radius^2; side = 2 * pi * radius * height; area = topBottom + side; end
gistlibby LogSnag