Friday , December 15 2017

C++

Recent Posts

Factorial of a number in C++

Factorial in C++

Factorial of a number in C++: Def : Factorial of a number  is the product of all positive integers less than or equal to that number.For example 4! = 4*3*2*1 = 24 6! = 6*5*4*3*2*1 = 720 3!=3*2*1 = 6   How to find factorial of a number in C++ : #include <iostream> using namespace std; int main() {    int i,fact=1,number;   cout<<“Enter any Number: “;  cin>>number;   for(i=1;i<=number;i++){ …

Read More »