blob: 5832ab16401167b3470d541b29e5fa447f30e534 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//chapter 24 Ex 3
clc;
clear;
close;
l=13; b=9; w=75/100; //converting into meter
rate=12.4;
area=l*b;
lCarpet=area/w;
cost=lCarpet*rate;
mprintf("The cost for carpeting is Rs.%.2f",cost);
|