#include <iostream> using namespace std; int main(){ cout << number(7); return 0; } int number(int N) { if (N == 0) return 0; if (N == 1) return 1; return N*number(N - 1); }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:5:18: error: ‘number’ was not declared in this scope cout << number(7); ^
Standard output is empty