summaryrefslogtreecommitdiff
path: root/3769/CH4/EX4.20/Ex4_20.sce
blob: 7c00d369b4a5a210b44c25f21934370109f13976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
C1=5                  //micro F
C2=6                  //micro F
V=10                  //V

//Calculation
Cp=C1+C2
q=Cp*V

//Result
printf("\n Charge supplied by battery is  %0.3f  micro F", q)