summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.5/Ex2_5.sce
blob: 4628fa39bb4f3cca17b2375a1038df349d9f0bf5 (plain)
1
2
3
4
5
6
7
8
clc;
//ex2.5
Vs=5; //volt
Vd=0.7; //volt
R1=1200; //ohm
R2=2200; //ohm
It=(Vs-Vd)/(R1+R2); //Ampere//Apply KVL to circuit       
disp('Ampere',It*1,"It=")