summaryrefslogtreecommitdiff
path: root/2510/CH18/EX18.20/Ex18_20.sce
blob: 4ca3829032104ca384e57d1a28b12b16d59181ed (plain)
1
2
3
4
5
6
7
8
9
10
11
//Variable declaration:
//Fro example 18.20:
V = 7335                    //Volume of tank (ft^3)

//Calculation:
D = (4*V/%pi)**(1/3)         //Diameter of tank (ft)
H = D                       //Height of tube (ft)

//Result:
printf("The diameter of tank is : %.2f ft .",H)
printf("The height of tube is : %.2f ft .",D)