factorial5 - y = 1; for i = 1:5 y = y * 1; end

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% 3/31/2011 % Topic: Recursive (iteration) % %writing 5! as a loop:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: y = 1; for i = 1:5 y = y * 1; end...
View Full Document

Ask a homework question - tutors are online