From eee1b287192f3d5ea07ed56f8ad7eb85d510244d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umut=20Baran=20=C3=87i=C3=A7ek?= <79962348+umutbarancicek@users.noreply.github.com> Date: Mon, 7 Mar 2022 12:05:56 +0300 Subject: [PATCH] faktoriyel --- "D\303\266ng\303\274ler/faktoriyel" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "D\303\266ng\303\274ler/faktoriyel" diff --git "a/D\303\266ng\303\274ler/faktoriyel" "b/D\303\266ng\303\274ler/faktoriyel" new file mode 100644 index 0000000..0d7ab3e --- /dev/null +++ "b/D\303\266ng\303\274ler/faktoriyel" @@ -0,0 +1,14 @@ + +def fakt(x): + + return 1\ + if (x == 1 or x == 0)\ + else x * fakt(x - 1); + + + + + + +sayi = int(input(' Sayını Giriniz : ')) +print(str(sayi) + " Sayısının faktöriyeli = " + str(fakt(sayi)))