width=input('enter the width of the box')
height =input('enter the height of the box')
for ii=1:width
fprintf('*')
end
fprintf('\n')
for jj=1:height-2
fprintf('*')
for ii=1:width-2
fprintf('0')
end
fprintf('*')
fprintf('\n')
end
for ii=1:width
fprintf('*')
end
fprintf('\n')