summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.6/Ex2_6.sce
blob: 6b5d94225016350c178cf9ca89672480235bada2 (plain)
1
2
3
4
5
6
7
clc;
//ex2.6
Vs=4; //volt
Vd=0.7; //volt
R1=5100; //ohm
IT=(Vs-2*Vd)/R1; //Ampere//KVL int the circuit
disp('Ampere',IT*1,"IT=")