diff options
Diffstat (limited to '1553/CH4/EX4.15/4Ex15.sce')
-rw-r--r-- | 1553/CH4/EX4.15/4Ex15.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1553/CH4/EX4.15/4Ex15.sce b/1553/CH4/EX4.15/4Ex15.sce new file mode 100644 index 000000000..016a389b8 --- /dev/null +++ b/1553/CH4/EX4.15/4Ex15.sce @@ -0,0 +1,16 @@ +//chapter 4 Ex 15
+
+clc;
+clear;
+close;
+x=poly(0,'x');
+y=(51-x)/4; //equation 1
+y=(43-3*x)/2; //equation 2
+for x=1:99
+ if (51-x)/4==(43-3*x)/2
+ break
+ end
+end
+y=(43-3*x)/2;
+z=12-y+x;
+printf("The values of x, y & z are: %d, %d, and %d respectively",x,y,z);
|