diff options
Diffstat (limited to '1553/CH4/EX4.4/4Ex4.sce')
-rw-r--r-- | 1553/CH4/EX4.4/4Ex4.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1553/CH4/EX4.4/4Ex4.sce b/1553/CH4/EX4.4/4Ex4.sce new file mode 100644 index 000000000..29a729de8 --- /dev/null +++ b/1553/CH4/EX4.4/4Ex4.sce @@ -0,0 +1,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);
|