#include <stdio.h>/* write a set of functions to calculate the Nth fibonacci number */int fib (int i) { int a, b; for (a = 0, b = 1; i--; ) { /* add b to a */ a += b; /* swap a and b (with a triple XOR) */ a ^= b; b ^= a; a ^= b; } return a;}int main (void) { int i; for (i = 0; i < 10; i++) printf("%d\n", fib(i)); return 0;}