diff options
Diffstat (limited to '1553/CH7/EX7.5/7Ex5.sce')
-rw-r--r-- | 1553/CH7/EX7.5/7Ex5.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1553/CH7/EX7.5/7Ex5.sce b/1553/CH7/EX7.5/7Ex5.sce new file mode 100644 index 000000000..5d1703a72 --- /dev/null +++ b/1553/CH7/EX7.5/7Ex5.sce @@ -0,0 +1,20 @@ +//Chapter 7 Ex5
+clc;
+clear;
+close;
+//let numbers be x and y
+
+x=poly(0,'x');
+y=x-11; //equation 1
+y=45-x; //equation 2
+for x=1:99
+ if x-11 ==45-x
+ mprintf("x=%i \n ",x)
+ break
+ end
+end
+disp("substitute the x value in any one of the above equationsto find y.");
+y=x-11;
+printf("\nThus the numbers are %d and %d: \n",x,y);
+
+
|