Hello,
I've just wrote a small program to calculate the factorial of a given number. When i give a small number everything is ok but when i want t calculate the factorial of a biger number, like 53!, I get a wrong answer.
I thing that the problec is the type of the type I use(unsigned long int).
Can anyone please helpmewith that;
em_i 9 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vijayan121 1,152 Posting Virtuoso
SpS commented: Nicely Presented +3
em_i 9 Newbie Poster
vijayan121 1,152 Posting Virtuoso
iamthwee
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.