:D
can you please help me in writing a program(c++) for finding factorial of a number using * operator overloading?

You know what a factorial is I hope?
Then you know you need multiplication to calculate it.

The simplest program would use a for loop, something like

long fact = 1;
// request is the number of which the factorial is requested
for (int i=1; i<=request; fact *= i++);

I'm not sure why you'd want to use overloaded operators, I guess you have to make a class Factorial.
If that's so the operator seems simple, with a body like "return f*i;" where f is a class member and i the parameter to the operator.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.