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);
|