repo.or.cz
/
polyglot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
opening pascal comment
[polyglot.git]
/
fibonacci.txt
blob
146e287f71a534a5404f2c23a648b6436bc5a53b
1
(*foo);
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
#define $ /*
6
"*/
7
main () /*"; # */
8
{
9
int $ i;
10
int $ n1;
11
int $ n2;
12
int $ n3;
13
$ i = 0;
14
$ n1 = 1;
15
$ n2 = 1;
16
printf( "%d\n", $ n1 );
17
while ( $ i < 9 ) {
18
$ n3 = $ n1 + $ n2;
19
$ n1 = $ n2;
20
$ n2 = $ n3;
21
printf( "%d\n", $ n1 );
22
$ i++;
23
}
24
}