online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void main() { int n,i,sum; int mn,mx; printf("Input the number : "); scanf("%d",&n); sum = 0; printf("The positive divisor : "); for (i=1;i<n;i++) { if(n%i==0) { sum=sum+i; printf("%d ",i); } } printf("\nThe sum of the divisor is : %d",sum); if(sum==n) printf("\nSo, the number is perfect."); else printf("\nSo, the number is not perfect."); printf("\n"); }

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