//example 1.13.b// clc //clears the screen// clear //clears all existing variables// t=9999+1; //total numbers// x=log2(t); //taking out power// y=round(x)+3; //no of bits required for BCD encoding// disp(y,'no of bits required for BCD encoding = ')