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
|