online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <math.h> void main() { int n1, n; int dec=0,i=0,j,d; printf("\n\nConvert Binary to Decimal:\n "); printf("-------------------------\n"); printf("Input the binary number :"); scanf("%d",&n); n1=n; while(n!=0) { d = n % 10; dec=dec+d*pow(2,i); n=n/10; i++; } printf("\nThe Binary Number : %d\nThe equivalent Decimal Number is : %d\n\n",n1,dec); }

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