blob: 25081714488bf934a955fd65e2c12d9f809d8b9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
R = 1.5 * 10**3 //Resistance (in ohm)
I = 16 * 10**-3 //Current (in Ampere)
//Calculation
V = I*R //Voltage (in volts)
//Result
printf("\n The voltage that must be applied to the relay coil to energize it is %0.3f volts." ,V)
|