Skip to content

Commit

Permalink
Merge pull request #110 from ibrahimirdem/patch-3
Browse files Browse the repository at this point in the history
Python dilinde dongu ile faktoriyel hesabi
  • Loading branch information
BilgisayarKavramlari authored Jan 15, 2017
2 parents 70b0626 + a4cdf21 commit 998c8d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions FaktoriyelDongu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Python3 için yazılmıştır.
def faktoriyel(sayi):
sonuc=1
while sayi>=1:
sonuc=sonuc*sayi
sayi-=1
return sonuc

deger=int(input("Bir sayi giriniz: "))
print("Faktoriyeli: {}".format(faktoriyel(deger)))

0 comments on commit 998c8d2

Please sign in to comment.