online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
n=int(input()) x=0 for i in range (1, n+1): x=x+i for j in range (1,i+1): c=x+j-i if i%2==1 else x-j+1 print(c, end=" ") print(' ')

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