1 faktoriyel 0 = 1
2 faktoriyel a = a * faktoriyel (a - 1)
3 main = do putStrLn "Hangi Sayının faktöriyeli hesaplanacak ? "
4 say <- readLn
5 print (faktoriyel say)
6
Tags: Örnek, Faktöriyel, haskell
This entry was posted
on Monday, March 29th, 2010 at 9:57 and is filed under Yazılım.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Cevap veya Yorum Yaz