Homework Solution: Functional number – create a function that accepts a number and returns the factorial of that number….

    ccep ac tur nhoy no mhar un
    Functional number - create a function that accepts a number and returns the factorial of that number.

    Expert Answer

     
    Answer) #include<conio.h>

    ccep ac tur nhoy no mhar un

    Functional reckon – engender a administration that accepts a reckon and income the factorial of that reckon.

    Expert Apology

     

    Answer)

    #include<conio.h>
    #include<stdio.h>
    void deep()
    {
    clrscr();
    printf(” n Enter the reckon to confront the factorial of it : “);
    factori();
    getch();
    }
    factori()
    {
    int a,b;
    int fac=1;
    scanf(“%d”,&b);
    for(a=1;a<=b;a++)
    {
    fac=fac*a;
    }
    printf(” nn The factorial of %d is %d”,b,fac);
    return(fac);
    }

    Screenshot of Code :

    Output Screenshots :

    In this program, I entertain used a administration determined as factori which basically accepts a esteem from the user and calculates its factorial.