Kod:
[COLOR="white"][B]class faktoriyel():
def __init__(self):
self.sayi = int(input("Hesaplanacak sayıyı gir "))
self.carp = 1
for i in range(1,self.sayi+1):
self.carp *= i
def oku(self):
print("Girilen sayının faktöriyeli : ",self.carp)
faktoriyella = faktoriyel()
faktoriyella.oku()[/B][/COLOR]


