//chapter 3 //example 3.20 //page 117 printf("\n") printf("given") E=5;Vo=4.5;Il=2*10^-3;Vf=0.7; R1=(E-Vo)/Il; printf(" suitable resistance is %dohm\n",R1) Vr=E disp("when diode is forward baised") If=(E-Vf)/R1; printf(" diode forward current is %3.3fA\n",If)