201flaviosilva-labs / 201flaviosilva-labs/play-code

Cálculo do Fatorial

Offen Anfängerfreundlich
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement Exercise good first issue
Vorherrschende Sprache
JavaScript
Sterne
1
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

```py
num = int(input("Number: "))
result = num

while num != 1:
num -= 1
result *= num

print("Resultado Fatorial: {}".format(result))
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
90/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.