1 2 3 4 5 6 7 8 9
//Ex 8 clc; clear; close; cp=1; cp_18=18; sp_18=21; gainPercent=(3/18)*100; mprintf("The profit percent is %3.2f percent",gainPercent);