online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> using namespace std; // Déclaration de la fonction int factorielle(int nb); int main() { int nombre, memoireNombre, resultat; cout << "Factorielle - Entrez un nombre : "; cin >> nombre; memoireNombre = nombre; resultat = factorielle(nombre); cout << "La factorielle de " << memoireNombre << " est " << resultat << endl; return 0; } // Définition de la fonction int factorielle(int nb) { if (nb == 0 || nb == 1) return 1; // gestion des cas 0! et 1! int result = nb; for (int i = nb - 1; i > 1; i--) { result *= i; } return result; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue