summaryrefslogtreecommitdiff
path: root/1436/CH2/EX2.10/ex2_10.sce
blob: 196cc017cf6e05f363be132e9370d2245e3782b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Example 2.10, page no-121
clear
clc

c=0.57

//(a)
d=0.1
di1=100
di2=1000
c1=c*di1*10/d
c1=ceil(c1)
printf("(a)\nC1=%d pf",c1)

//(b)
c2=c*di2*10/d
printf("\n(b)\nC2=%d pf",c2)

//(c)
ds=0.09
c11=c*di1*10/ds
c12=c*di2*10/ds
printf("\n(c)\nC1 = %.1f pf\nC2 = %d pf",c11,c12)