summaryrefslogtreecommitdiff
path: root/3544/CH3/EX3.2/Ex3_2.sce
blob: 9e7411c522185a1980477e83b3507d335435baa8 (plain)
1
2
3
4
5
6
7
8
9
10

//Functioning of XOR logic

printf("\tInput 1\tInput 2\tOutput\n\n")

for i=0:1
    for j=0:1
        printf("\t  %d\t  %d\t  %d\n",i,j,bitxor(i,j))
    end
end