Closed camiscf closed 2 years ago
using namespace std; int main(void) { int no;
long fac; cout << "Enter a Number : "; cin >> no; fac = 1; for (int r=no; r >= 1; r--) { fac = fac * r; } cout << "Factorial of " << no <<" is "<<fac <<endl; return 0;
}
include
using namespace std; int main(void) { int no;
}