//Chapter 10, Problem 14 clc; P1=100; //input power P2=6; //ouput power d=10*log10(P2/P1); //decibel power ratio printf("decibel power loss = %f dB",d);