29
Mar

haskell faktöriyel hesaplama

   Posted by: Muhammed YÜRÜRDURMAZ   in Yazılım


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

Bookmark and Share
Tags: , ,

Tags: , ,

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

İsminiz
e-Mail (Burada yayınlanmayacak endişelenmeyin)
Web Siteniz
Yorumunuz

Switch to our mobile site