201flaviosilva-labs / 201flaviosilva-labs/play-code
Cálculo do Fatorial
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```py
num = int(input("Number: "))
result = num
while num != 1:
num -= 1
result *= num
print("Resultado Fatorial: {}".format(result))
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue contains a Python script that calculates a factorial. The script likely has a bug in its logic or output formatting. Start by running the provided code to see its current behavior. Then, compare it to the expected factorial calculation (e.g., handling input 0 or 1). Modify the script in the repository's Python exercise files, test with a few inputs, and ensure the output matches the correct factorial results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 90/100