Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
266 B
13
Indexable
Never
#include <stdio.h>

unsigned long factorial(unsigned int n)
{

}

int main()
{
    unsigned int number = 6;
    unsigned long fac = factorial(number);
    if (fac == 720)
    {
        printf("Good job!");
    }
    else
    {
        printf("Not exactly.");
    }
}
Leave a Comment