//Ex19_3 Pg-958 clc a=1 b=0 c=1 dec=a*2^(-1)+b*2^(-2)+c*2^(-3) //decimal output disp("The decimal equivqlent of 0.101 is") disp(dec)