You are on page 1of 2

program hurufn; uses crt; var n,i,j:integer; begin clrscr; write('Banyaknya baris : '); readln(n); for i:=1 to n do begin

for j:=1 to n do if (j=1) or (j=n) or (i=j) then write('*') else write(' '); writeln; end; readln; end.

You might also like