calculating the integral

this is one of few of my practice quizzes for my upcoming test, i am having way too much trouble writing the code for it out, help on writing this code out will be appreciated

Write a program which calculates the integral of the function

f(x)=(A*x^m)/n!

on the interval from a to b (0<a<b). In the main program, scanf
a double value for m and a non-negative integer value for n,
a double value of A, and positive double values for a and b>a.
Call the function Intgr() to evaluate the integral.

Your main program should be followed by three functions:

double Intgr(double m, int n, double A, double a, double b)

double func(double x, double m, int n, double A)

double nfact(int n)

Show us the code you have and people will be happy to point out ways to improve it, bugs, etc.
In general people here will not simply give code solutions to problems as this tends not to help you learn where you are going wrong.
Topic archived. No new replies allowed.