clear // //norton's theorem v=10 //applying kvl to closed circuit isc=12/(2+2) rn=4 //resistance obtained by short circuiting v and opening i iab=(4*3)/(4+4) //current through 4 ohm connected across AB printf("\n iab= %0.1f A",iab)