online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void main() { int i,n,sum=0; printf("Input number of terms : "); scanf("%d",&n); printf("\nThe odd numbers are :"); for(i=1;i<=n;i++) { printf("%d ",2*i-1); sum+=2*i-1; } printf("\nThe Sum of odd Natural Number upto %d terms : %d \n",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