clear //Given V=230 //v P=100 t=20*60 V1=115 //V //Calculation R=V**2/P E=(V1**2*t)/R //Result printf("\n Heat and light energy is %0.3f J", E)