Ich hoffe ihr könnt mir bei meinem Problem helfen. Ich habe folgendes Programm:
Code: Alles auswählen
def Anz(n,t):
if t>n:return 0
if n%t==0:return 1+Anz(n,t+1)
return Anz(n,t+1)
wenn ich jetzt Anz(12,1) eingebe, kommt als Ergebnis 6 raus.
Wenn ich Anz(19,5) eingebe kommt 1 als Ergb. raus.
Kann mir jemand das Programm erklären.
danke