Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cc00a3fa70
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.391 kb
#!/usr/bin/env ferite
/* -*- mode: c; mode: fold -*- */
uses "console";
function factorial( number n)
{
if ( n==0 || n==1)
{
return 1;
}
else
{
return n*factorial(n-1);
}
}
number k = 0, i = 0, sum = 0;
for(k=0; k<10; k++)
{
sum = 0;
for (i=0; i<50; i++)
{
sum = sum+factorial(i);
}
}
Console.print( "sum=" + sum +"\n" );
Jump to Line
Something went wrong with that request. Please try again.