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)