/*here to allow the user to enter 11 binary numbers*/
decimal+=2 * i ;
printf("your decimal number is %d",decimal);
sorry jokerjokerer what I have done is not correct How!!!!.
let's say we have this binary number00000000001 by the privous programming gives the result equal to 2048 and that is wrong the correct decimal is 1 not 2048 . therefore I would correct my answer by the following programe
and please if you get it reply to me thanks
printf("please enter 11 binary numbers");
//to allow user enter 11 binary numbers
//please as soon as you get it tell me that.
// sorry for my mistak