clear// //Variables R = 36.0 //Resistance (in ohm) V = 230.0 //Voltage (in volts) //Calculation P = V**2/R //Power (in watt) //Result printf("\n Power rating is %0.3f kW.",P/1000)