1 2 3 4 5 6 7 8 9
//draw function machine for n^2+5 clear; clc; close; mprintf("the first five terms of the sequence are: \n"); for n=1:5 disp(n^2+5) end