1 2 3 4 5 6 7
//Example 1_3 page no:3 clc clear E=50;//Energy in joules t=2.5;//Time in second P=E/t; disp(P,"Power(in watts):")