blob: 482ea9946df4b00499533891147e6b4ffa101117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Problem 2.05: A coil has a current of 50 mA flowing through it when the applied voltage is 12 V. What is the resistance of the coil?
//initializing the variables:
I = 0.050; // in Ampere
V = 12; // in Volts
//calculation:
R = V/I
printf("\n\nResult\n\n")
printf("\nResistance(R): %.0f Ohms\n",R)
|