1 2 3 4 5 6 7 8 9 10 11 12 13
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)