1 2 3 4 5 6
//example 2.2(c)// //decimal to binary conversion// ans=bin2dec('11111111') //decimal equivalent of binary number// disp(ans) //answer in decimal form//