#include double legendre(double n, double x) { ... } int main() { double n, x; scanf("%lf %lf", &n, &x); double y = legendre(n, x); printf("%lf\n", y); return 0; }