Proggramming Tutorials & Web Development Technologies - Tutorials for PHP,Laravel,Codeigniter,Yii,Bootstrap,Ajax,JQuery
#include void main() { int a, fact; printf("\nEnter any number: "); scanf ("%d", &a); fact=rec (a); printf("\nFactorial Value = %d", fact); } rec (int x) { int f; if (x==1) return (1); else f=x*rec(x-1); return (f); }
No comments:
Post a Comment