1 2 3 4 5 6 7 8
clc //initialisation of variables eo= 88 //perecent ev= 97 //percent //CALCULATIONS em= eo*100/ev //RESULTS printf ('mechanical efficency = %.2f percent',em)