Aggiorna test.c
This commit is contained in:
parent
db24857775
commit
257f9c9b40
1 changed files with 20 additions and 2 deletions
22
test.c
22
test.c
|
|
@ -1,3 +1,21 @@
|
|||
int main(void){
|
||||
return 0;
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b, c, i, n;
|
||||
|
||||
n = 10000;
|
||||
|
||||
a = b = 1;
|
||||
|
||||
printf("%d %d ",a,b);
|
||||
|
||||
for(i = 1; i <= n-2; i++) {
|
||||
c = a + b;
|
||||
printf("%d ", c);
|
||||
|
||||
a = b;
|
||||
b = c;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue