summaryrefslogtreecommitdiff
path: root/1553/CH24/EX24.2/24Ex2.sce
blob: 2b134d10b526541bb99def42456100ebb012b639 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 24 Ex 2

clc;
clear;
close;
l=13; b=9; w=75/100; rate=12.4;
area=l*b;
Length=area/w;
cost=Length*rate;
printf("The cost of carpeting is Rs. %4.2f",cost);