online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <math.h> void main() { int x,sum,ctr; int i,n,m,mm,nn; printf("Input the value of x :"); scanf("%d",&x); printf("Input number of terms : "); scanf("%d",&n); sum =x; m=-1; printf("The values of the series: \n"); printf("%d\n",x); for (i = 1; i < n; i++) { ctr = (2 * i + 1); mm = pow(x, ctr); nn = mm * m; printf("%d \n",nn); sum = sum + nn; m = m * (-1); } printf("\nThe sum = %d\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