#include<stdio.h>
int getTemperature();
int main(){
getTemperature();
return 0;
}
int getTemperature(){
int temperature;
printf("please input a temperature:\n");
scanf("%d",&temperature);
printf("当前的温度是:%d\n",temperature);
return temperature;
}
#include<stdio.h>
int getTemperature();
int main(){
getTemperature();
return 0;
}
int getTemperature(){
int temperature;
printf("please input a temperature:\n");
scanf("%d",&temperature);
printf("当前的温度是:%d\n",temperature);
return temperature;
}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。