1 2 3 4 5 6 7 8 9 10 11
//chapter 2 printf("\n"); Gt=1.5; Gr=1.5; d=10; Pt=15; f=10^9; c=3*10^8; lamda=c/f; Pr=Pt*Gt*Gr*(lamda/(4*(%pi)*d))^2; printf("the radiated power is %gW",Pr);