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

clc;
clear;
close;
excess=5/100; deficit=4/100;
Error=((1+excess)*(1-deficit))-1;
ErrorPercent=Error*100;
mprintf("The percentage error is %.1f percent",ErrorPercent);