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

clc;
clear;
close;
cp=27.50; 
sp=28.60;
gain=sp-cp;
gainPercent=(gain/cp)*100;
printf("The gain is %d percent",gainPercent);