blob: 807383e79f516cf99939441a609f5b7a6ea3b69a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//chapter 2
//example 2.1
//page 37
printf("\n")
printf("given")
disp("a)")
If=100*10^-3;Vf=.75;//given
disp("forward resistance")
Rf=Vf/If;
printf("forward resistnace is %3.1fohm\n",Rf)
disp("b)")
Vr=50;Ir=100*10^-9;
Rr=(Vr/Ir);
printf("reverse resistnace is %3.0fohm\n",Rr)
|