Write a function fact(int n) to find the factorial of a number n. Include a main class to
find the value of S where:
S =n!/m!(n-m)!
where, n'= 1x 2 x 3 x.....................to
X n
Answers
Answered by
4
Answer:
C++ Program
#include<iostream>
using namespace std;
int main() {
int num,factorial=1;
cout<<" Enter Number To Find Its Factorial: ";
cin>>num;
for (int a=1;a<=num;a++) {
factorial=factorial*a;
Similar questions