summaryrefslogtreecommitdiff
path: root/2825/CH19/EX19.24/Ex19_24.sce
blob: 1101cc5d7eb190f8ac3e4381d37501646f958534 (plain)
1
2
3
4
5
6
7
8
9
//Ex19_24 Pg-969
clc

x=bin2dec('11100') //1st input
y=bin2dec('11010') //2nd input
z=x+y //binary addition
add=dec2bin(z)
disp(" 11100 + 11010 = ")
disp(add)