//Example 2.2 //Calculate vL disp("Given") disp("v2=3V") v2=3; //From figure 2.19b disp("Considering the right hand part of the circuit ") disp("vL=5v2") vL=5*v2; disp("On substitution") printf("vL=%dV\n",vL);