summaryrefslogtreecommitdiff
path: root/1286/CH1/EX1.9/1_9.sce
blob: 9c203b5d9bd3603d9746d6878fe5958499e3f568 (plain)
1
2
3
4
5
6
7
8
9
10
clc
//initialisations
ht=65//cm
h0=-5//cm
t=273//c
//CALCULATIONAS
h100=h0+(100*(ht-h0)/t)
l=(1+(t/273))
H=(ht-(h0*l))/(l-1)
printf(' temperature= % 1f cm',H)