online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/* Program for Exponential Series */ #include<stdio.h> int main() { int i, n; float x, sum=1, t=1; printf("Enter the value for x : "); scanf("%f", &x); printf("\nEnter the value for n : "); scanf("%d", &n); /* Loop to calculate the value of Exponential */ for(i=1;i<=n;i++) { t=t*x/i; sum=sum+t; } printf("\nThe Exponential Value of %f = %.4f", x, 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