online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void main() { long int n,i,t=9; int sum =0; printf("Input the number or terms :"); scanf("%ld",&n); for (i=1;i<=n;i++) { sum +=t; printf("%ld ",t); t=t*10+9; } printf("\nThe sum of the series = %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