1 2 3 4 5 6 7 8 9 10 11
//Ex 5 clc; clear; close; lossPercent=5; spOld=1140; gainPercent=5; spNew=(spOld/(100-lossPercent))*(100+gainPercent); printf("The new Selling Price is Rs. %d",spNew);