function matrix = Program7_Function(n)

for i = [1:n]
    matrix(i,i) = i;
   if i == n
       matrix(end) = 12;
   end
end
end