C program to generate ASCII value correspoing string value
The the conversion of string into ascii value of each character present in that string. First we input an string value from user and generate the ascii value of each character.



ALGORITHM:-

step 1 : Start
step 2 : Enter the Binary number in form of (0101)
step 3 : Calc the Remainder using(%10)
step 4 : Add the remainer with Decimal number
step 5 : repeat until zero
step 6 : Display the decimal value
step 7 : Stop the Execution


PROGRAM CODE:-

#include<stdio.h>
#include<stdio.h>

int main()
{   
    long int bn,dn=0,j=1,rem;

    printf("Enter any binary number: ");
    scanf("%ld",&bn);
    while(bn != 0)
    {
        rem=bn%10;
        dn=dn+rem*j;
        j=j*2;
        bn=bn/10;
    }
    printf("decimal value is : %ld",dn);
    return 0;
}
OUTPUT:-

Enter any binary number : 1111 

Decimal value is: 15

C Program To Convert Any binary number into decimal value
How to convert binary number into decimal number using c
Conversion of binary number to decimal number