online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { setlocale(LC_ALL, "Russian"); int n; cout << "Введите число: "; cin >> n; if (n < 0) { cout << "Некоректные данные"; return 0; } if (n == 0) { cout << "Факториал 0 = 1"; return 0; } long long sum = 1; for (int i = 1; i <= n; i++) { sum = sum * i; } cout << "Факториал " << n << " = " << sum; }

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