1. ## Expansions

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();
}```

2. Well your first problem seems to be trying to use the ^ operator as "raise to power of", and it isn't that at all. It's the bitwise exclusive-or operator.

3. I wonder how many boards mutty posted this to, seeing as he has no time check each for a reply.

4. This looks like the work of someone who just types in whatever random sequence of symbols, keywords, and variable names come to mind, and simply prays for a working program.

If you want to program you actually have to learn what all those symbols and keywords do. You need to sit down with a good book and actually spend time learning from it.
Look that may sound harsh, but you yourself know that you barely have a clue what you're doing beyond how to cout or cin something. If you can't be bothered spending the time to learn it then I can't be bothered helping.