Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Star Control 2

Name: Anonymous 2012-08-21 5:14

Star Control 2 has a race of galactic jews.  No, they are not Melnorme or the Crimson Corporation.

You probably have guessed that Dnyarri is the jews

Name: Anonymous 2012-08-21 14:38

/*
 * fib.c
 *
 * Program som finner det N-te fibonaccitallet for en gitt N.
 */

#include <stdio.h>
#include <stdlib.h>
#include "norsk.h"

hel fib(hel n)
{
    hvis (n < 0) returner -1;
    velg (n) {
        tilfelle 0:
            returner 0;
        tilfelle 1:
            returner 1;
    }
    hel f = 1, ff = 0, i;
    for (i = 2; i <= n; i++) {
        hel midl = f + ff;
        ff = f;
        f = midl;
    }
    returner f;
}

hel hoved(hel arga, tegn **argv)
{
    hvis (arga == 2) {
        hel n = ttilh(argv[1]);
        skrivf("fib(%d) = %d\n", n, fib(n));
    } ellers {
        skrivf("bruk:\n\t%s N\nfinner fib(N)\n", argv[0]);
    }
    returner 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List