//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