Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
cython-plus
typon
Commits
d139ddc4
Commit
d139ddc4
authored
Jul 06, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test program func_fibo.cpp for comparison purposes
parent
8e9690eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
rt/test/func_fibo.cpp
rt/test/func_fibo.cpp
+18
-0
No files found.
rt/test/func_fibo.cpp
0 → 100644
View file @
d139ddc4
#include <cstdio>
int
fibo
(
int
n
)
{
if
(
n
<
2
)
{
return
n
;
}
int
a
=
fibo
(
n
-
1
);
int
b
=
fibo
(
n
-
2
);
return
a
+
b
;
}
int
main
()
{
int
result
=
fibo
(
40
);
printf
(
"%d
\n
"
,
result
);
puts
(
"done"
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment