summaryrefslogtreecommitdiff
path: root/1553/CH9/EX9.4/9Ex4.sce
blob: a0787e61b33b24788c05c73e1894e57a888c6966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 9 Ex 4

clc;
close;
clear;
x=poly(0,'x');
for x=1:20
    if ((2^(x-1))+(2^(x+1)))==1280
        break;
    end
end
mprintf("The value of x is %d",x);