summaryrefslogtreecommitdiff
path: root/2534/CH2/EX2.21/Ex2_21.sce
blob: a4e725572b0bef58044b4f12166c3091426e0eac (plain)
1
2
3
4
5
//Ex2_20
clc
V = 2
disp("V1 = V2 = V3 = V4 = "+string(V)+"V")//four batteries of equal voltage connected in series
disp("VT = V1 = V2 = V3 = V4 = "+string(V)+"V")//parallel voltage