blob: 85e68dba7e51a30975cbe651c1322055eff430d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//chapter 10 Ex 1
clc;
clear;
close;
a=(50/3)/100; b=2/15; c=0.17; greatest=a;
if a>b then if a>c then greatest=a;
end
else if b>c then greatest=b;
end
else greatest=c;
end
mprintf("The greatest number is %.2f",greatest);
|