% hw011.m
% John Burkardt
% Count UP from 123 to 255 by 17's, then DOWN.
%
fprintf ( '\n' )
fprintf ( 'From 123 UP to 255 by 17''s.\n' )
fprintf ( '\n' )
for i = 123 : 17 : 255
  fprintf ( '%d ', i )
end
fprintf ( '\n');
fprintf ( '\n' )
fprintf ( 'From 255 DOWN to 123 by 17''s.\n' )
fprintf ( '\n' )
for i = 255 : -17 : 123
  fprintf ( '%d ', i )
end
fprintf ( '\n');

