Selasa, 31 Januari 2012

Program mencetak huruf N

program cetak_n; uses wincrt; var    i,j,n:integer; begin writeln('------------------------------'); writeln('   Program mencetak huruf N   '); writeln('------------------------------'); writeln; write('Masukkan angka : ');readln(n); writeln; writeln('Hasilnya : '); writeln; for j:=1 to n do     begin                     for i:=1 to n do             begin                  if (i=1) or (j=i) or (i=n) then                 write('*')                 else                 write(' ');             end;         writeln;     end; end.
screenshot output program
Semoga Bermanfaat.....

0 komentar:

Posting Komentar

Posting Lebih Baru Posting Lama Beranda

 

Welcome Guys

Dangdut

Lawas

About Me

Foto Saya
Nama : Nasrum Sahab Alamat : Dusun Balonggatel, Desa Karangwedoro, Kecamatan Turi Kabupaten Lamongan, Provinsi Jawa Timur, Negara Indonesia
 

Templates by Nano Yulianto | CSS3 by David Walsh | Powered by {N}Code & Blogger