Toggle navigation
Courses
Questions
Tags
Users
AC 20161102 作業1
2
like
0
dislike
7.4k
views
請設計一程式,使用者輸入一個正整數N,程式會輸出相對應的費氏數列第N項。
sample input:
10
sample output:
55
[Exercise]
Coding (C)
-
asked
Nov 2, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16861 -
Available when:
Unlimited
-
Due to:
Unlimited
|
7.4k
views
comment
1
2
Called for Help
Please
log in
or
register
to add a comment.
44
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
int ffff(int fa){
* * * ** * * * ** * ** *** * t1=1,t2=2,i,back=0;
** ** * * * * * *** ** (fa==1 ||fa==2){
* * * * * * * * **** * *** * * * * ** * * ** * * * * 1;
}
** * * * * * * **
* * * ** * * * ** * *** * * * * * *** * * ** ** * * * * *
*** * * * ** * * ** * * * * ** * * * ** * * * * * *** * * * * * *** * *
* ** * * * ** ** *** *** * ** * * **** * ** * * * * * * * * * ** * *
* ** * * * * * *** *** ** * ** * * * * ** ** *** ** ** * * ** * * * *
* * ** * *** *** ** ** * * * **** ** * * * ** ****
* * * * ** * * * * * * ** * ** * * * * back;
** ** ** * ** ** *
}
int main(){
** ** * * * * * ** * * a=0;
** * * * * * * ** * * * * * ** ****** ** ** * ** *
**** * ** ** ** * *** ** * * **** ** *** * * **
* ** * * * * * * * * * 0;
}
answered
Jan 1, 2017
by
shihemi
(
-82
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{