summaryrefslogtreecommitdiff
path: root/3669/CH14/EX14.11/11.sce
blob: 7ce285f6e75035a905e84f7243abdc0ed40b7d61 (plain)
1
2
3
4
5
6
7
8
9
10
11

//Variable declaration
D5=0.3;      //diameter of 5th ring(cm)
D15=0.62;    //diameter of 15th ring(cm)

//Calculation
D_25=2*(D15**2)-(D5**2);
D25=sqrt(D_25);      //diameter of 25th ring(cm)

//Result
printf('diameter of 25th ring is %0.3f    cm \n',(D25))