URL
https://opencores.org/ocsvn/m1_core/m1_core/trunk
Subversion Repositories m1_core
[/] [m1_core/] [tags/] [first/] [tests/] [fact.c] - Rev 64
Go to most recent revision | Compare with Previous | Blame | View Log
int fact_f(int n) { if(n==1) return 1; else return n*fact_f(n-1); } int main() { int num = 5; int fact = fact_f(num); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log