blob: e60949cc7ccf65eef7c4d9e511bc06c2e268a931 (
plain)
1
2
3
4
5
6
7
|
//Example 20.4
V=12;//Voltage (V)
I=2.50;//Current (A)
R=V/I;//Resistance from Ohm's law (ohm)
printf('Resistance of automobile headlight = %0.2f ohm',R)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|