summaryrefslogtreecommitdiff
path: root/1553/CH11/EX11.2/11Ex2.sce
blob: 5aa2e6ab1c9c27a557b9d177d936757d7fe8f957 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex 2

clc;
clear;
close;
cp=490;
sp=465.50;
loss=cp-sp;
lossPercent=(loss/cp)*100;
printf("The loss is %d percent",lossPercent);