summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.20/3_20.sce
blob: 9840692d555c41372f6d493d39fbe3f1bba46fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

R = 8                 //Resistance (in ohm)
I = 2.5               //Current (in Ampere)

//Calculation

V = I*R               //Voltage (in volts)

//Result

printf("\n The maximum safe voltage is  %0.3f  volts.",V)