Skip to content

Instantly share code, notes, and snippets.

View rohithill's full-sized avatar

रोहित हिल rohithill

View GitHub Profile
@rohithill
rohithill / Factorial_Recursion.cpp
Last active July 8, 2016 03:20
Calculating factorial using recursion.
#include <iostream.h>
#include <conio.h>
long factorial(int n)
{
if(n==0)
return 1;
else
return n * factorial(n-1);
}
void main()