Skip to content

Bug in factorial.c #397

@ashwek

Description

@ashwek

Describe the bug
in Maths/Factorial/C/factorial.c:
scanf("%d",&n); n variable isn't declared
factorial function is not called in main function

Expected behavior
printf("Factorial = %lld", factorial(n)); should be added
and declare n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions