blob: 9d1873fb7a7fc50788c14f86fbcb0ab8e16c459b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//chapter 24 Ex 9
clc;
clear;
close;
l=5*100+55; //converting to centimeter
b=3*100+74;
area=l*b;
sideLargest=gcd(uint32([l b]));
areatile=sideLargest^2;
number=area/areatile;
mprintf("The number of tiles required are %d",number);
|