summaryrefslogtreecommitdiff
path: root/3769/CH27/EX27.2/Ex27_2.sce
blob: 9b6d10534822bed24af780918d529ddc9021ba87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
V=2                 //V
R=10.0           //ohm
R1=20.0

//Calculation
I=V/R
I1=V/R1

//Result
printf("\n (i) Current drawn from battery is %0.3f  A", I)
printf("\n (ii) Current drawn from point B is %0.3f  A",I1)