<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Factorial code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Mon, 18 Aug 2008 08:58:25 GMT</pubDate>
    <description>DZone Snippets: Factorial code</description>
    <item>
      <title>Factorial in Scheme</title>
      <link>http://snippets.dzone.com/posts/show/1734</link>
      <description>;Calculate the factorial of a number&lt;br /&gt;;(factorial 5) = 1 * 2 * 3 * 4 * 5 = 120&lt;br /&gt;;(factorial 50) = 30414093201713378043612608166064768844377641568960512000000000000&lt;br /&gt;&lt;code&gt;&lt;br /&gt;(define factorial&lt;br /&gt;  (lambda (n)&lt;br /&gt;    (if (= n 0) 1&lt;br /&gt;        (* n (factorial (- n 1))))))&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 23 Mar 2006 12:59:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1734</guid>
      <author>willpost ()</author>
    </item>
  </channel>
</rss>
