summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.4/3_4.sce
blob: 0d8ee0cdd61caa160126e66a4b814630259d6c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear//

//Variables

I = 5             //Current (in Ampere) 
Q = 4 * 10**-3    //Charge (in Coulomb)

//Calculation
t = Q/I           //time (in seconds)

//Result
printf("\n Time in which the 4 mC of charge flows through this element is  %0.3f  ms.",t * 10**3)