#include <stdio.h>
      
      long int iterativeFactorial(long int input){
      	int factorial = 1;
      	for (int i = 1; i <= input; i++) {
      		factorial *= i;
      	}
      	return factorial;
      }
      
      C language logo

      Iterative Factorial

      Codiga's C Recipes

      Function to return the factorial

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.