update codebase
This commit is contained in:
parent
cf8e2e6cf6
commit
5c12fdf377
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
fibo
|
|
@ -1,22 +1,19 @@
|
|||
#include <fibo.h>
|
||||
char fibo(char n)
|
||||
{
|
||||
char fibo(char n) {
|
||||
char a;
|
||||
char b;
|
||||
char c;
|
||||
if(n==1){
|
||||
a=1;
|
||||
}else{
|
||||
if (n == 1) {
|
||||
a = 1;
|
||||
} else {
|
||||
char i;
|
||||
c=0;
|
||||
b=1;
|
||||
for(i=2;i<=n;i++){
|
||||
a=b+c;
|
||||
c=b;
|
||||
b=a;
|
||||
c = 0;
|
||||
b = 1;
|
||||
for (i = 2; i <= n; i++) {
|
||||
a = b + c;
|
||||
c = b;
|
||||
b = a;
|
||||
}
|
||||
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#include <stdio.h>
|
||||
#include <fibo.h>
|
||||
int main()
|
||||
{
|
||||
int n,i;
|
||||
scanf("%d",&n);
|
||||
for(i=1;i<=n;i++){
|
||||
printf("%d ",fibo(i));
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int n, i;
|
||||
scanf("%d", &n);
|
||||
for (i = 1; i <= n; i++) {
|
||||
printf("%d%c", fibo(i), i == n ? '\n' : ' ');
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Please put your result in this directory.
|
||||
Please put your result in this directory.
|
||||
|
|
|
@ -5,9 +5,9 @@ do
|
|||
if [ $a -gt 70 ] #if loop variable is greater than 70
|
||||
then
|
||||
|
||||
elif [ $a -gt 40 ] # else if loop variable is great than 40
|
||||
elif [ $a -gt 40 ] # else if loop variable is great than 40
|
||||
then
|
||||
|
||||
|
||||
fi
|
||||
#don't forget change the loop variable
|
||||
done
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is an empty directory.
|
||||
This is an empty directory.
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue