blob: b879f39eee2f098a02c0401f67a49f2ce954f8de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//Given
K=5
l=0.2
c=10**-9 //F
b=15.4
a=15
pd=5000 //V
//Calculation
//
C=(K*l*c)/(41.1*log10(b/a))
//Result
printf("\n (i) The capacitance of cylindrical capacitor is %0.1f *10**-9 F",C*10**9)
printf("\n (ii) The potential of the inner cylinder is equal to p.d. between two cylinders i.e potentila of inner cylinder is %0.3f V",pd)
|