summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.25/3_25.sce
blob: 358fe7cc9b00984de83160e316ff94cc58ea8aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

I = 5                 //Current (in Ampere)
V = 230               //Voltage (in volts)

//Calculation

P = V*I               //Power consumed (in watt)

//Result

printf("\n The power consumed by the toaster is:  %0.3f  watt.",P)