summaryrefslogtreecommitdiff
path: root/3836/CH13/EX13.1/Ex13_1.sce
blob: 75c025f1a3d453b6c407ac76d84098e8779f7d73 (plain)
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)