{"conversations": [{"from": "user", "value": "Si us plau, escriu una funci\u00f3 a C per calcular els n\u00fameros de Fibonacci"}, {"from": "assistant", "value": "Aqu\u00ed teniu una funci\u00f3 que retorna el n- sim n\u00famero de la successi\u00f3 de Fibonacci, a C: \u00ab% c unsigned fibonacci( unsigned n) { unsigned a = 0; unsigned b = 1; for (unsigned i = 0; i < n; i++) { unsigned c = a + b; a = b; b = c; } return a; } `' ''''"}]}