-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSequences.h
More file actions
44 lines (33 loc) · 838 Bytes
/
Sequences.h
File metadata and controls
44 lines (33 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Sequences.h
//
//
// Created by Cesar Angeles on 07/09/2020.
//
#ifndef Sequences_h
#define Sequences_h
#include <stdio.h>
#ifdef Sequences_IMPORT
#define EXTERN
#else
#define EXTERN extern
#endif
/* Sequences.h -- Function prototypes */
/**
* Returns the value of the fibonacci sequence at index n calculated sequentially
* @param
* n (long long int):
* Index of the fibonacci sequence
* @return long long int value
*/
EXTERN long long int Sequences_sfibo(long long int n);
/**
* Returns the value of the fibonacci sequence at index n calculated recursively
* @param
* n (long long int):
* Index of the fibonacci sequence
* @return long long int value
*/
EXTERN long long int Sequences_rfibo(long long int n);
#undef Sequences_IMPORT
#undef EXTERN
#endif /* Sequences_h */