diff options
Diffstat (limited to '1553/CH4/EX4.21/4Ex21.sce')
-rw-r--r-- | 1553/CH4/EX4.21/4Ex21.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH4/EX4.21/4Ex21.sce b/1553/CH4/EX4.21/4Ex21.sce new file mode 100644 index 000000000..95cada65f --- /dev/null +++ b/1553/CH4/EX4.21/4Ex21.sce @@ -0,0 +1,11 @@ +//chapter 4 Ex 21
+
+clc;
+clear;
+close;
+rent=2/5; food=3/10; conveyance=1/8; Amtleft=1400;
+PartLeft=1-(rent+food+conveyance);
+salary=Amtleft/PartLeft;
+eFood=food*salary;
+eConveyance=conveyance*salary;
+printf("The expenditure on food is Rs. %3.0f and that on conveyance is Rs. %3.0f",eFood,eConveyance);
|