blob: 131e7debeb56421db4971b7ad01a4d7806e885ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
//Input data
t1=0;//The given temperature in degree centigrade
//Calculations
T1=t1+273;//The given temperature in K
T2=(1/2)^2*T1;//The temperature at which the r.m.s velocity of a gas be half its value at 0 degree centigrade in K
T21=T2-273;//The required temperature in degree centigrade
//Output
printf('The required temperature is T2 = %3.2f K (or) %3.2f degree centigrade ',T2,T21)
|