update codebase

This commit is contained in:
karin0 2023-02-26 22:08:47 +08:00
parent cf8e2e6cf6
commit 5c12fdf377
No known key found for this signature in database
GPG Key ID: 61F46B41F3576165
706 changed files with 9473 additions and 32627 deletions

2
lab0/csc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.o
fibo

View File

@ -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;
}

View File

@ -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;
}

View File

@ -1 +1 @@
Please put your result in this directory.
Please put your result in this directory.

View File

@ -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

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -1 +1 @@
This is an empty directory.
This is an empty directory.

View File

@ -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