原因可能是变量s的数据类型不对,代码和解释如下:
```c
#include <stdio.h>
int main(){
//使用long long int的原因是左上角有个 IO Format:%lld
//%lld 修饰符对应的数据类型是long long int,所以变量s使用这种数据类型
long long int s;
int age;
scanf("%d",&age);
s=age*31560000;
printf("%lld",s);
return 0;
}
```
可能需要考虑整型的越界问题