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)