1 2 3 4 5 6 7 8 9 10
//chapter 14 //example 14.1 //page 301 Av=20*log10(30) Pv=10*log10(100) printf("voltage gain = %.3f db \n",Av) printf("power gain = %.3f db \n",Pv)