summaryrefslogtreecommitdiff
path: root/1553/CH4/EX4.4/4Ex4.sce
blob: 29a729de833003de82530a194cba2f331d69f039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter 4 Ex 4

clc;
clear;
close;
// from given statement we the equation as (4/21)x-(8/45)x=8
for x=1:700
    if ((4/21)*x-(8/45)*x)==8
        break;
    end
end
half=x/2;
mprintf("The required number is %d",half);