mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
13 lines
228 B
C
13 lines
228 B
C
|
#include <stdio.h>
|
||
|
#include <assert.h>
|
||
|
#include <stdlib.h>
|
||
|
#include "fiblib.h"
|
||
|
|
||
|
int main (int argc, char *argv[]) {
|
||
|
assert(argc==2);
|
||
|
int n = atoi(argv[1]);
|
||
|
long fn = fib(n);
|
||
|
printf("fib(%d)=%ld\n", n, fn);
|
||
|
return 0;
|
||
|
}
|