blob: f1c6b10d94ca8df366d7011a597d00882a11f59b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//Given
ne=2.8*10**18
np=1.2*10**18
e=1.6*10**-19
t=1 //S
V=220
//Calculation
q=(ne+np)*e
I=q/t
R=V/I
//Result
printf("\n Effective resistance of the tube is %0.0f ohm",R)
|