blob: 253b5ced013effa1fd6e2d6197ec8d326b628056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
|