//C program for
//Replacing 0 and 1
#include <stdio.h>
#include<math.h>

int main()
{
    int N=102301;

    int ans=0;
    int i=0;
    while(N!=0){
        //Condition to change the value
        if(N % 10 ==0)
            ans=ans+1* pow(10,i);
        else
            ans=ans+(N % 10)* pow(10,i);
        N=N/10;
        i++;
    }
    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: