1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given C=5*10**-6 V=100 C1=3*10**-6 //Calculation q=C*V Cp=C+C1 pd=q/Cp //Result printf("\n P.D across the capacitor is %0.3f V", pd)