1 2 3 4 5 6
clc; PL=0.24; //watt Pdc=1.2; //watt efficiency=(PL/Pdc)*100; disp('%',efficiency,"efficiency=");//The answers vary due to round off error