//Example 17_5 clc(); clear; //To find out the amount of heat developed in bulb t=20*60 //Units in sec pow=40 //Units in W heat=t*pow //Units in J printf("Heat generated in bulb is=%d J",heat)