GATEverse
← GATE CSE 1990

Q11b

NATMarks unknown

The following program computes values of a mathematical function f(x)f(x). Determine the form of f(x)f(x). main () { int m, n; float x, y, t; scanf ("%f%d", &x, &n); t = 1; y = 0; m = 1; do { t *= (-x/m); y += t; } while (m++ < n); printf ("The value of y is %f", y); }

Sign in to save attempts.

Loading…