* Added directory programs/c/ for counterparts to the VM programs written in C * Added fib.c
16 lines
151 B
C
16 lines
151 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int a = 1, b = 0;
|
|
|
|
loop:
|
|
a += b;
|
|
b += a;
|
|
|
|
printf("%i\n%i\n", a, b);
|
|
|
|
if(a > 0 && b > 0) goto loop;
|
|
|
|
return 0;
|
|
}
|