Az alábbi letöltési lehetőségek közül választhatsz: (
segítség)
Típus: text/plain
Tartalmaz szöveget
Karakterkódolás: us-ascii
Méret: 774 byte
program felbont2;
uses
SysUtils;
Var t : array [1..100] of integer;
Procedure felb(n,szint:integer);
Var i : integer;
Begin
If (n in [0,1]) then
Begin
for i:=1 to szint-2 do write(t[i],'*');
Writeln(t[szint-1]);
End;
For i:=2 to n do
Begin
t[szint]:=i;
If (szint=1)and((n mod i)=0) then felb(n div i,szint+1) else
If (szint>1)and(t[szint-1]>=i)and((n mod i)=0) then felb(n div i,szint+1);
End;
End;
begin
felb(20,1);
Readln;
end.