online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iomanip> #include <iostream> #include <vector> void PascalTriangle(int n) { int a; for (int i = 1; i <= n; i++) { a = 1; for (int j = 1; j <= i; j++) { if (j == 1) std::cout << a; else std::cout << std::setw(4) << a; a = a * (i - j) / j; } std::cout << std::endl; } } int main() { PascalTriangle(7); return 0; }

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