1 2 3 4 5 6 7 8 9 10 11 12 13
// Power Rating Calculation clc; clear; V=250; I=15; // Power Equation or Watt's Law P=V*I. P=V*I; disp('watts',P,'The power rating of the device =')