as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
construct a c program that prints the first 10 terms of the fibonacci sequence.
user
#include<stdio.h>
 
int main()
{
   int i, n1 = 0, n2 = 1, n3;
 
   printf("the first 10 terms of the fibonacci sequence are:\n");
   printf("%d\n%d\n", n1, n2);
 
   for (i = 3; i <= 10; ++i) 
   {
      n3 = n1 + n2;
      printf("%d\n", n3);
      n1 = n2;
      n2 = n3;
   }
   return 0;
}
assistant