blob: 5e574355ed31027bfc0144510391787c996c7c6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
P = 36 //Power (in watt)
V = 230.0 //Voltage (in volts)
//Calculation
R = V**2/P //Resistance (in ohm)
//Result
printf("\n Resistance of the heating element is %0.0f ohm.",R)
|