I'm writing a program to compute a sort of binomial expansion. It inturn uses a factorial function.

But there is some errors within the program which i just cant figure out. Help me plzzz. <<snipped email>>. I really need the help

the program is as below:

Code:#include <iostream.h> #include <math.h> #include <conio.h> int factorial (int num) { int result=1; cout<< "Enter The Number Of Factorials To Be Used:"; cin>>num; for (int i=1; i<=num; ++i) result=result*i; return result; } void result () { int r,n; float x; float m; cout<< "THE NUMBER OF TERMS AND AND THE NUMBER OF FACTORIALS SHOULD BE EQUAL\n\n"; cout<< "Enter The N Number Of Terms To Be Used:"; cin>> n; cout<< "Enter The Value Of X:"; cin>>x; m = 0; for (r=0; r<=n; r++) { m == x^r/r*factorial; } cout<< "Summation ="" "; cout<< m; getch(); }