Tag: piramid bintang

  • Membuat Piramid Bintang

    Program piramid bintang dengan pascal kiriman Saipul Bahrie program bintang_piramid; uses wincrt; var c,a,b,n : integer; begin write (‘masukkan angka : ‘);readln(n); writeln; if n mod 2 = 0 then for a := 1 to (n div 2) do begin for b := 1 to (n div 2)-a do write (‘ ‘); for c :=…