online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** https://ticoprof.wordpress.com/2016/04/26/esercizi-con-gli-array/ es 16 Memorizzare in un array di 12 posizioni i primi numeri della serie di Fibonacci,in cui ogni numero è dato dalla somma dei precedenti e i primi due numeri sono 0 e 1. *******************************************************************************/ #include <iostream> using namespace std; int main () { int a[12]; a[0]=0; a[1]=1; for (int i = 2; i < 12; i++) { a[i]=a[i-1]+a[i-2]; } for (int i = 0; i < 12; i++) {cout<<a[i]<<" ";} }

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