summaryrefslogtreecommitdiff
path: root/3845/CH13/EX13.1/Ex13_1.sce
blob: 04344cfcf9357e6e9c20085d1f0a4633088a4b07 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 13.1
T_C=25;//Temperature (C)
T_F=(9/5*T_C)+32;//Temperature (F)
printf('a.Room temperature = %0.1f F',T_F)
T_K=T_C+273.15;//Temperature (K)
printf('\nb.Room temperature = %0.1f K',T_K)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest