1 2 3 4 5 6 7 8 9 10 11
clear //Initialization c=10*10**-6 //capacitance in Farad v=10 //voltage //Calculation q=c*v //charge in coulomb //Results printf("\n Charge, q = %.1f uC",q*10**6)