🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
Hard

Debugging Helper

#coding #debugging #troubleshooting

Identify logical errors or bugs in a code snippet and propose a fix.

Analyze the following code snippet which is intended to calculate the factorial of a number but is producing incorrect results. Identify the bug, explain why it is happening, and provide the corrected code.