blob: 932a59192b0eef4f38460b93b093268c359f3886 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//
//
//
//Variable declaration
T=1127+273; //temperature(K)
lamda_m=2*10^-6; //wavelength(m)
lamda=14*10^-6; //wavelength(m)
//Calculations
Tm=lamda_m*T/lamda; //temperature of moon(K)
//Result
printf("\n temperature of moon is %0.0f K",Tm)
|