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

clc;
clear;
close;
sp=100;
cp=96;
profit=sp-cp;
profitPercent=(profit/cp)*100;
printf("The profit is %3.2f percent",profitPercent);