//C Program for Converting
//Binary to Decimal
#include <stdio.h>

int main() 
{
    int N=11011100;

    //Initializing base value a to 1
    int a =1;
    int ans=0;
    while(N != 0){
        ans=ans+(N % 10*a);
        N=N/10;
        a=a*2;
   }
    printf("%d",ans);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: