summaryrefslogtreecommitdiff
path: root/995/CH3/EX3.3/Ex3_3.sce
blob: 1564c050752c7a8f565490f021defb4091c4f2be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Ex:3.3
clc;
clear;
close;
V1=7.5;//in volts
V2=4.5;
V3=4.5;
r1=110;//in ohms
r2=33;
r3=22;
i1=V1/r1;
i2=V2/r2;
i3=V3/r3;
printf("Current I1 = %f A",i1);
printf("\n Current I2 = %f A",i2);
printf("\n Current I3 = %f A",i3);