summaryrefslogtreecommitdiff
path: root/3769/CH5/EX5.1/Ex5_1.sce
blob: ef54e0b5b2b5d255201d6eeef21fcc39f0557c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
n=10**17
e=1.6*10**-19               //C
t=1.0                       //S

//Calculation
I=n*e/t

//Result
printf("\n The magnitude of current in the wire is  %0.3f  10**-2 A and direction is from left to right",I*10**2)