201flaviosilva-labs / 201flaviosilva-labs/play-code
Cálculo do Fatorial
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
```py
num = int(input("Number: "))
result = num
while num != 1:
num -= 1
result *= num
print("Resultado Fatorial: {}".format(result))
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 90/100