summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.4/Ex2_4.sce
blob: 98004a4c2941624579ea56fd8cf27e2bf94b3884 (plain)
1
2
3
4
5
6
7
clc;
//ex2.4
Vs=6; //volt
Vd=0.7;//volt
R1=10000;//ohm
It=(Vs-Vd)/R1; //Total circuit current using kirchoff's volatage law
disp('Ampere',It,"It=")