summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.24/Ch1_1_24.sce
blob: 217e12ea868a414453df574f6a633093b8fec169 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
disp("Example 1.24")
printf("\n")
disp("calculate the current in the circuit in fig 1.18")
//given
V=12
R1=10^3
R2=2*10^3
//current
I=V/(R1+R2)
printf("current in the circuit=%f Ampere",I)