please help me to find how to find the factorial of a number in a easy way?
the methods i have seen are difficult to me .can any one heelp me to solve the problem?
jbstin
0
Newbie Poster
Recommended Answers
Jump to PostAlready did -- see the previous thead you started this morning.
Jump to PostSo...what/where is the method you've tried? Without providing you the answer...here is a basic outline:
#include <iostream> #include <cctype> #include <iomanip> #include <cmath> #include <fstream> #include <string> using namespace std; int main(void) { int num;//number to get it's factorial cout << "Please enter a positive number: "; …
All 5 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
zandiago
115
Nearly a Posting Maven
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
joshua.tilson
3
Light Poster
zandiago
115
Nearly a Posting Maven
Featured Poster
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.