Iterative program to find factorial of a number
GTU ADA Practical – 4 Implementation and Time analysis of factorial program using iterative and recursive method #include #include #include int fact(int x) { double f = x; if (x != 1) f *= fact(x – 1); else return 1; return f; } void main() { int i, n; double a, fa = 1; clock_t […]