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);