Factorial till N Without recursion!!

#include int main() { int n,count; scanf("%d",&n); count =1; for(int i =1;i

Mar 18, 2025 - 18:01
 0
Factorial till N Without recursion!!

Image description

#include 

int main()
{
    int n,count;
    scanf("%d",&n);
    count =1;
    for(int i =1;i<=n;i++){
        count *=i;
    }
    printf("%d",count);

    return 0;
}

as we know recursion is used to call a function to itself
and here this is a code without using recursion!! it is able to find the factorial till n!! to understand more about recursion check my previous factorial code using recursion or do message!! :)