summaryrefslogtreecommitdiff
path: root/3809/CH4/EX4.1/EX4_1.sce
blob: 4027170ad91a0dd4ddeb30e01fba2ac388962fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 4, Example 4.1

clc
//Initialisation'
c=10^-5                   //capacitance in farad
v=10                      //voltage


//Calculation
q=c*v                     //charge in coulombs



//Results
printf("Charge, Q = %d uC",(q*10^6))