online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/* Escribir un programa en C++, que lea un entero N y luego imprima una X usando "*" */ #include<iostream> using namespace std; int main() { int n; cin>>n; for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { if(i == j || n-i-1 == j) cout<<"*"; else cout<<"."; } cout<<"\n"; } 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