#include "header.h" //function value of problem A int fA(Vector x,float *fp,int spec) { static int c=0; //counter of run times int i; float sum=0; if(spec==1) return c; // spec==1 means we want counter else // spec==0 means we want function value { c++; for(i=1;i