summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.22/3_22.sce
blob: e32053f52cc151fee374f62a98610c31984a1775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

I = 20 * 10**-3              //Current per segment (in Ampere)
V = 5                        //Voltage (in volts)

//Calculation

R = V/I                      //Resistance (in ohm)
  
//Result

printf("\n Resistance that must be inserted into the circuit of each segment is  %0.3f  ohm.",R)