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);