1 2 3 4 5 6 7 8
//Example 17_2 clc(); clear; //To find the resistance in bulb v=1.55 //Units in V i=0.08 //Units in A r=v/i //Units in Ohms printf("The resistance in bulb is=%.1f Ohms",r)