summaryrefslogtreecommitdiff
path: root/2627/CH1/EX1.1/Ex1_1.sce
blob: 119f38ee3665684ec6008936a26ad6b8ddee104f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Ex 1.1
clc;clear;close;
format('v',4);
R=3;//kohm
V=220;//V
//First Case
I=V/R;//mA
disp(I,"1st case : Current in the circuit(mA)");
//Second Case
Req=R+R;//ohm(Equivalent resistance)
I=V/Req;//mA
disp(I,"2nd case : Current in the circuit(mA)");