summaryrefslogtreecommitdiff
path: root/226/CH2/EX2.6/example6_sce.sce
blob: 4c9c3856ac421c424063aee0850e6ad937634964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//chapter 2
//example 2.6
//page 43
printf("\n")
printf("given")
If=0;Vf=5;R1=100;
E=(If*R1)+Vf
disp("E")
disp("B)")
Vf=0;E=5;R1=100;
If=(E/R1)*1000;
printf("resistance is %dmA\n",If)