nishant-ai / DSA-Help

This is a respository for helping students learn DSA in different Programming Languages.
MIT License
140 stars 87 forks source link

Create Factorial.cpp #228

Closed AmanDekate1 closed 1 year ago

AmanDekate1 commented 1 year ago

Factorial of a positive integer (number) is the sum of multiplication of all the integers smaller than that positive integer. For example, factorial of 5 is 5 4 3 2 1 which equals to 120. This code takes up a positive number and perform a factorial operation.