// mainfile.cpp: Demonstration of separate cmpilation
// The file funcfile.cpp should be linked
#include <iostream>
#include "func.h"
using namespace std;

int main() {
 extern int n;
 n = 10;
 setk(5);
 cout << "f(2) = " << f(2) << endl;
 cout << "f(3) = " << f(3) << endl;
 cout << "Function f was called " << getcounter() << " times. " << endl;
 return 0;
}

